[JBoss jBPM] - 'Global' transitions
by caron@sadalbari.com
Hi,
I have defined a process (see below).
>From the UI, the user can click a button (at any time of the process) called 'Unsign Data Capture'. Regardless of which state the process is, the state must 'rewind' and execute task node 'process data capture'
To model this, I have added transitions 'Unsign Data Capture' from each of my nodes back to the 'process data capture' node. I am wondering if there is a better way of doing this ie to indicate a 'global' transition back to a state/nodel
This is a snapshot of my process:
|
| <process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="ClaimLifecycle">
| <start-state name="start">
| <transition to="process data capture"></transition>
| </start-state>
|
| <task-node name="process data capture">
| <task name="process data capture">
| <assignment actor-id="#{claimLifecycleService.getDataCaptureActor}"></assignment>
| </task>
| <transition to="process quality assurance" name="sign data capture"></transition>
| </task-node>
|
| <task-node name="process quality assurance">
| <task name="process quality assurance">
| <assignment pooled-actors="#{claimLifecycleService.getProcessQualityAssuranceTaskPool}"></assignment>
| </task>
| <transition to="process merit assessment" name="sign quality assurance"></transition>
| <transition to="process data capture" name="unsign data capture"></transition>
| </task-node>
|
| <task-node name="process merit assessment">
| <task name="process merit assessment">
| <assignment pooled-actors="#{claimLifecycleService.getProcessMeritAssessmentTaskPool}"></assignment>
| </task>
| <transition to="process data capture" name="unsign data capture"></transition>
| <transition to="end-state1" name="to end-state1"></transition>
| </task-node>
|
| <end-state name="end-state1"></end-state>
|
| </process-definition>
|
In reality, the process is much longer than this and for each node I have to add the same transition to get me back to 'process data capture'.
| transition to="process data capture" name="unsign data capture"></transition>
|
Any help will be much appreciated.
Thanks,
Caron
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4177571#4177571
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4177571
17 years, 6 months
[JBoss jBPM] - Configuring a JSF backing bean to use JBPM
by Octomac
Hello, all.
I'm creating a JSF application that uses jBPM as a task-tracking tool with several workflows. I have jBPM running correctly and several working processes, but I have some odd behavior regarding task lists being refreshed, that sort of thing. Does anyone have any information on how to properly configure a backing bean to use jBPM? I have one now that is using the API, but I'm not sure that I'm really going about it in the right manner.
My bean is currendly a request bean that creates a new JBPMConfiguration and JBPMContext each request. This is extremely inefficient, and I'm sure I'll catch some flak for doing this, but I did have a reason. Originally, I had a session bean that constructed a single JBPMConfiguration, and JBPMContexts were created for the duration of a single transaction, then closed. This was, as I understood it, the "correct" way to build this kind of application. However, this led to quite a few odd problems. The most glaring one is that task lists, which I was retrieving using the jbpmContext.getTaskMgmtSession().findPooledTaskInstances(userId) method, or simply the jbpmContext.getTaskList(userId) method, depending on the situation, would not be refreshed in the UI until I had logged out and back into the application, creating a new session and, by association, a new session bean.
So, I would really like to find some kind of example of existing code that uses JSF and jBPM in a correct fashion. I believe the JbpmConsole web-app does this, but all I have is the .war file for that. I'd love to be able to see the source code for the backing beans and actual JSP pages, if that's possible. Is there anywhere I can download that?
Thanks in advance for any help you can offer.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4177493#4177493
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4177493
17 years, 6 months