-
1. Re: jBpm 4.3 service task has no optional args?
rebody Aug 12, 2010 8:04 PM (in response to tstephen)Hi Tim,
There is a little problem on jBPM-4.3. It can't identify whether this specified variable is not existed or is null. It had been fixed in jBPM-4.4. I suggest you to have a try jBPM-4.4.
-
2. Re: jBpm 4.3 service task has no optional args?
tstephen Aug 25, 2010 5:59 PM (in response to rebody)Thanks for the reply. I did upgrade to 4.4 and after a little head-scratching I realised I was encountering JBPM-2830. Your patch restored my application built on 4.3 to the point that I can start and list process instances so I'm hoping it is agreed to restore the previous behaviour.
I tried again to call a Java Service Task with an arg that is not populated at the time the service task is invoked:
<itemDefinition id="registerUserItemDef" >
<jbpm:arg>
<jbpm:object expr="#{user}" />
</jbpm:arg>
<jbpm:arg>
<jbpm:object expr="#{groups}" />
</jbpm:arg>
</itemDefinition>...
<operation id="registerUser" name="registerUser">
and this time I get a different error:
org.jbpm.pvm.internal.wire.WireException: couldn't invoke method registerUser: couldn't create argument 1: Cannot resolve identifier 'groups'
at org.jbpm.bpmn.flownodes.JavaServiceTaskActivity.perform(JavaServiceTaskActivity.java:92)Once again, creating a variable named groups allows the service task to be invoked successfully.
Tim