hi there,
Bonita Studio 6.3.3/7, Java 1.7.0.67, Windows 8.1
I have a Process Diagram with three pools
PoolA has one SendMSG task to PoolB on TargetElementA with one ContentItemA value ABC
PoolB has one StartMSG called TargetElementA which receives the msg from PoolA and passes it to a HumanTask that displays the data from ContentItemA
All very easy and it works…took a while but it does work as expected. PoolA fires PoolB and shows the data.
PoolC has one ServiceTask with Groovy Connector source code below. This is supposed to mimic Pool A, it executes without error but does not fire PoolB.
Can someone help please, this is really holding me up.
import org.bonitasoft.engine.api.APIAccessor;
import org.bonitasoft.engine.api.ProcessAPI;
import org.bonitasoft.engine.api.ProcessRuntimeAPI;
import org.bonitasoft.engine.expression.ExpressionBuilder;
import org.bonitasoft.engine.expression.Expression;
import java.util.logging.Logger;
String thisTrace = "SignalNextProcess: "
Logger logger= Logger.getLogger(“org.bonitasoft”);
logger.severe(thisTrace+“Trace Start”);
Expression targetProcess = new ExpressionBuilder().createConstantStringExpression(“PoolB”);
Expression targetFlowNode = new ExpressionBuilder().createConstantStringExpression(“TargetElementA”);
ProcessAPI processAPI = apiAccessor.getProcessAPI();
Map<Expression, Expression> mapA = new HashMap<Expression, Expression>();
Expression messageContentKey = new ExpressionBuilder().createConstantStringExpression(“ABC”);
Expression messageContentValue = new ExpressionBuilder().createConstantStringExpression(“ABCDEF”);
mapA.put(messageContentKey, messageContentValue)
try{
processAPI.sendMessage(“SendMsgWithContent-Working-RecvMsg”,
targetProcess,
targetFlowNode,
mapA
);
}
catch(Exception e1){
logger.severe(thisTrace+"Exception e1: " + e1.message + “\n” + e1.stackTrace);
}
logger.severe(thisTrace+“Trace End”);
The log I get is this which shows the code is not failing…but the process is also not firing…
2014-10-16 13:07:29 org.bonitasoft.engine.api.impl.ProcessStarter
INFO: THREAD_ID=155 | HOSTNAME=Mainframe | TENANT_ID=1 | The user has started the process instance <27> of process in version <1.0> and id <8570457281865086169>
2014-10-16 13:07:29 org.bonitasoft
SEVERE: SignalNextProcess: Trace Start
2014-10-16 13:07:29 org.bonitasoft
SEVERE: SignalNextProcess: Trace End
HELP!
thanks and regards
Seán