Skip to content
Open
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
17 changes: 4 additions & 13 deletions javasource/processqueue/queuehandler/ObjectQueueExecutor.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import processqueue.proxies.LogReason;
import processqueue.proxies.Process;
import processqueue.proxies.QueuedAction;
import processqueue.proxies.microflows.Microflows;

import com.mendix.core.Core;
import com.mendix.core.CoreException;
Expand Down Expand Up @@ -67,16 +66,6 @@ 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 Expand Up @@ -152,7 +141,9 @@ public synchronized void run()
setErrormessageAndCommit(this.context, this.action, errorMessage, null, LogExecutionStatus.Skipped, ActionStatus.Cancelled );
else {
_logNode.info(errorMessage);
Microflows.sUB_ProcessQueue_NoActionFoundErrorHandler(context, errorMessage);
HashMap<String, Object> paramMap = new HashMap<String, Object>();
paramMap.put("ErrorMessage", errorMessage);
Core.execute(context, "ProcessQueue.SUB_ProcessQueue_NoActionFoundErrorHandler", paramMap);
}
}
else {
Expand Down Expand Up @@ -309,4 +300,4 @@ public long getActionNr() {
public String getMicroflowName() {
return this.microflowName;
}
}
}