[JBoss Seam] - jBPM - What's in scope for a DecisionHandler?
by bsmithjj
Hello,
I have the following DecisionHandler node:
| <decision name="IsTerminationRequest" expression="#{workItemManager.isTerminationRequest}">
| <transition to="Check Provisioning Type" name="isTerminationRequest"/>
| <transition to="ABO Approve-Reject Request" name="aboApprove"/>
| </decision>
|
Which Seam - jBPM components point to something meaningful when that expression is resolved and invoked?
* org.jboss.seam.core.actor
* org.jboss.seam.core.transition
* org.jboss.seam.core.businessProcess
* org.jboss.seam.core.taskInstance
* org.jboss.seam.core.processInstance
* org.jboss.seam.core.jbpmContext
* org.jboss.seam.core.taskInstanceList
* org.jboss.seam.core.pooledTaskInstanceList
* org.jboss.seam.core.taskInstanceListForType
* org.jboss.seam.core.pooledTask
I know jbpmContext is points to something 'good'. What is the contract for all the rest of these components?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031782#4031782
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031782
19Â years
[JBoss jBPM] - setting and accessing process variables in jpdl
by shea.phillips
Hello,
I am wondering how/if it is possible to set and access process variables from JPDL. I am most interested at the moment in being able to assign the return value from an action expression to a process variable for use elsewhere in my process definition.
Here is a snippet from my process definition (not necessarily working) that invokes a Seam service/component and accepts a parameter and returns a String value or null, which I will test against in a transition element, and then use as a parameter in another action expression. Ultimately, the result of the latter service invocation will also be passed as a parameter to another service, although not shown here:
| <process-definition xmlns="http://jbpm.org/jpdl-3.1.xsd"
| name="interpretationProcess">
|
|
| <start-state name="start">
| <transition name="begin" to="determineInterpretationProcess"></transition>
| </start-state>
|
| <node name="determineInterpretationProcess">
| <action expression="#{interpretationLookup.getIntepretationName($recordID)}"/>
| <transition condition="#{empty interpretationName}" to="completed"/>
| <transition condition="#{not empty interpretationName}" to="doInterpretation"/>
| </node>
|
| <node name="doInterpretation">
| <action expression="#{interpretationService.doInterpretation($interpretationName)}"/>
| </node>
|
| <end-state name="completed" />
|
| </process-definition>
|
There are two issue I have here:
1. $myVar is a process instance variable created when my process instance is created - can it be referenced as shown above in an expression?
2. How would I assign the return value of my expression to a variable with some scope that is accessible within my process? My sense so far is that I may need to use the element...
Note that I would like to avoid having a "stateful" service (in which I invoke a method that does not return a value, but has a separate method for retrieving the result of the method). I have seen this in at least one example, but I would prefer not to do this.
thanks,
Shea.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031779#4031779
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031779
19Â years
[Persistence, JBoss/CMP, Hibernate, Database] - Re: Autoincrement DB2 JBOSS EJB CMP configuring
by risenhoover
Hi there,
I don't know if I can answer your question exactly, but I can assure you that I've been using DB2 for about two years now, with hand-written JDBC code to do my inserts into tables with AUTO-INCREMENT, and I get DuplicateKeyExceptions all the frickin time.
I've actually had to hand-write exception handlers to catch any exceptions during inserts, check the cause, and if it's because of a duplicate key exception, perform a manual increment and re-insert the row.
I'm using DB2 v 8.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031771#4031771
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031771
19Â years