Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Releases/ProcessQueueMX710-V4.0_20171102.mpk
Binary file not shown.
5 changes: 0 additions & 5 deletions javasource/processqueue/actions/AppendNewActionToQueue.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,6 @@ else if( processId == null ) {

QueueHandler.getQueueHandler().addActionToQueue(context, this.__ActionToQueue, process, false, calling_microflow_name);

// Based on ticket #56473: Added commit after adding the action to the queue
// so status changes always get updated in the client as soon as possible.
// E.g. actions being set to "Queued".
Core.commit(getContext(), this.ActionToQueue);

return true;
// END USER CODE
}
Expand Down
10 changes: 10 additions & 0 deletions javasource/processqueue/queuehandler/ObjectQueueExecutor.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,16 @@ public ObjectQueueExecutor( IContext context, IMendixObject action, IMendixObjec

this.action = action;
this.action.setValue(this.context, QueuedAction.MemberNames.Phase.toString(), ActionStatus.Queued.toString());

//Make sure we commit the latest info so status changes always get updated in the client as soon as possible.
// E.g. actions being set to "Queued".
if( this.action.isNew() || this.action.isChanged() ) {
try {
Core.commit( this.context, this.action );
} catch (CoreException e) {
_logNode.error("Error while trying to commit QueuedAction " + this.action.getValue(this.context, QueuedAction.MemberNames.ActionNumber.toString()) + " from queue", e);
}
}
}

public void initializeAction(ActionStatus phase, LogExecutionStatus status ) {
Expand Down