[
http://jira.jboss.com/jira/browse/JBESB-733?page=comments#action_12369828 ]
Burr Sutter commented on JBESB-733:
-----------------------------------
processInstance.setKey("myKey");
We'll need to modify the XML declaration:
<action name="create_new_process_instance"
class="org.jboss.soa.esb.services.jbpm.actions.BpmProcessor">
<property name="command"
value="NewProcessInstanceCommand" />
<property name="process-definition-name"
value="processDefinition1"/>
<property name="actor"
value="FrankSinatra"/>
<property name="key" value="body.MyKey"/>
<property name="esb-to-jbpm">
<!-- esb-name maps to getBody().get("eVar1") -->
<variables>
<variable esb-name="BODY_CONTENT"
jbpm-name="theBody" />
</variables>
</property>
</action>
Note: the line <property name="key" value="body.MyKey"/>, I
need to be able to pull the key from the place in the body since this key is typically
going to be something like "Invoice ID" or "Customer Name".
bpm-based quickstarts should specify a businessKey for jBPM 3.2.1
Admin Console
-------------------------------------------------------------------------------
Key: JBESB-733
URL:
http://jira.jboss.com/jira/browse/JBESB-733
Project: JBoss ESB
Issue Type: Task
Security Level: Public(Everyone can see)
Components: BPM
Affects Versions: 4.2 Milestone Release 2
Reporter: Burr Sutter
Assigned To: Kurt Stam
Fix For: 4.2
Without a businessKey set as a process instance variable (actual variable name still to
be determined) the list of process instances looks all the same. Other than begin/end time
it is impossible to differentiate between the various instances. The businessKey would
normally bet set to something the Order/Invoice ID or some other unique but business
related identifier.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira