[jboss-user] [jBPM Development] - JBPM-2772 retrieve business key from sub-process

Maciej Swiderski do-not-reply at jboss.com
Thu Aug 12 02:38:05 EDT 2010

Maciej Swiderski [http://community.jboss.org/people/swiderski.maciej] replied to the discussion

"JBPM-2772 retrieve business key from sub-process"

To view the discussion, visit: http://community.jboss.org/message/557018#557018

Correct, I mixed parent and super/subprocess usage in jBPM. Parent is used for executions that are derived from origin such as when using fork and super/sub are used to reflect relationship between processes. My mistake.

Back to the issue, I was suggesting to allow users to provide their business key for subprocess that will be used when executing it. Please consider very simple definition that consists of subprocess:

<process name="SubProcessDocument" xmlns="http://jbpm.org/4.4/jpdl">

  <start g="20,20,48,48">
    <transition to="review" />

  <sub-process name="review" key="#{mySubProcessBusinessKey}"

    <parameter-in var="document" subvar="document" />
    <parameter-out var="reviewResult" subvar="result" />

    <transition to="wait" />

  <state name="wait" g="255,16,88,52"/>


Then when subprocess is created it will assign value of mySubProcessBusinessKey to key of the execution. Of course it can in some situations cause uniqueness problems but since it is designed to be externally provided (within scope of the process definition) I would say that it is a known risk.

Does it make sense to you or am I completely lost?


Reply to this message by going to Community

Start a new discussion in jBPM Development at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100812/492b164c/attachment.html 

More information about the jboss-user mailing list