[jboss-user] [jBPM] - Setting superProcessToken results in to error :ERROR [STDERR] org.jbpm.JbpmException: couldn't signal without specifying a leaving transition : transition is null
Shashwat Gaur
do-not-reply at jboss.com
Tue Jun 15 02:40:28 EDT 2010
Shashwat Gaur [http://community.jboss.org/people/shashwat123] replied to the discussion
"Setting superProcessToken results in to error :ERROR [STDERR] org.jbpm.JbpmException: couldn't signal without specifying a leaving transition : transition is null"
To view the discussion, visit: http://community.jboss.org/message/547976#547976
--------------------------------------------------------------
Thanks Alejandro for your prompt reply. Yes you are correct that subprocess instance automatically sets the superprocess token. In my case if either I set the superprocess token or i use the 'createSubProcessInstance' to create the subprocess which automatically sets the super process token i get this error. Please have a look at the following code snippet, I am using in my work flow:
public void execute(ExecutionContext executionContext) throws Exception {
processName = getProcessName();
ProcessDefinition processDefinition = ManagedJbpmContext.instance().getGraphSession().findLatestProcessDefinition(processName);
ProcessInstance pi = executionContext.getToken().createSubProcessInstance(processDefinition);
Task task = ProcessUtil.getStartTask(pi.getProcessDefinition());
Map<String, Object> values = extractCallerData(executionContext,
task);
TaskInstance ti = ProcessUtil.initializeProcess(pi, task, values,
false);
if (ti != null) {
// setup the swimlane instance
Swimlane s = ti.getTask().getSwimlane();
if (s != null) {
String assignment = s.getPooledActorsExpression();
if (!Strings.isEmpty(assignment)) {
ti.getSwimlaneInstance().setPooledActors(
assignment.split(","));
}
ti.end();
}
}
}
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/547976#547976]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100615/1388dfca/attachment.html
More information about the jboss-user
mailing list