[JBoss Seam] - Re: How to Initiating multiple jBPM processes from within a
by vsbhanot
"vsbhanot" wrote : Hi
|
| I am developing an application using SEAM, JBPM & JSF. I have a situation where multiple business processes will be initiated during an already active process.
|
| Is there a way to achieve this or may be an altered approach to achieve the same?
|
| This is what I intend to do:
| 1)Process execution
| Process A: taskA1 --> taskA2 {Initiate process B--> taskB1 followed by Process C --> taskC1 --> taskC2 } --> taskA3
|
| Process B: taskB1 --> taskB2
|
| Process C: taskC1 --> taskC2 --> taskC3
|
|
| 2) I am going to use a statefull model so I have a separate jPDL to define the pageflows. Within the execution of lets say, "PageFlowA" initiated using @Create; my jBPM process "ProcessA" is initiated using @CreateProcess(definition="ProcessA "). At second task (taskA2) of ProcessA I further initiate Process B & C.
|
| And this is where I am clueless about how to initiate these further new Processes B & C during an already active Process A.
|
| Many Thanks
| Vijendra
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057558#4057558
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057558
18Â years, 10Â months
[JBoss Seam] - How to Initiating multiple jBPM processes from within a sing
by vsbhanot
Hi
I am developing an application using SEAM, JBPM & JSF. I have a situation where multiple business processes will be initiated during an already active process.
Is there a way to achieve this or may be an altered approach to achieve the same?
This is what I intend to do:
1)Process execution
Process A: taskA1 --> taskA2 {Initiate process B--> taskB1 followed by Process C --> taskC1 --> taskC2 } --> taskA3
Process B: taskB1 --> taskB2
Process C: taskC1 --> taskC2 --> taskC3
2) I am going to use a statefull model so I have a separate jPDL to define the pageflows. Within the execution of lets say, "PageFlowA" initiated using @Create; my jBPM process "ProcessA" is initiated using @CreateProcess(definition="ProcessA "). At second task (taskA2) of ProcessA I further initiate Process B & C.
And this is where I am clueless about how to initiate these further new Processes B & C during an already active Process A.
Many Thanks
Vijendra
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057556#4057556
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057556
18Â years, 10Â months
[JBoss Seam] - Re: How to run a page action only once? or How to maintain t
by Delphi's Ghost
If I'm understanding the problem right, you could put the initialization code into a @Create annotated method which would be called when when the backing bean is created as long as the backing bean is used only with this page. I think you would have to make the bean conversational scope, and run the page within the conversational scope. I must admit I don't fully understand the page scope. I think in page scope it creates and destroys the bean each time. (I still don't get the differences between page and even scopes).
Another option might be simply to outject a flag into the conversational scope using something like :
|
| @In @Out(Scope=CONVERSATION)
| private Boolean isPrepared;
|
Set this flag in your initialization scope and it will be passed in and out of the bean on each action. I think this could work, but I'm not sure.
Of course then you can access the #{isPrepared} value from your page navigation logic if you still need it.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057552#4057552
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057552
18Â years, 10Â months
[JBoss Seam] - Re: UnitTesting and jBPM pageflow
by trekker880
Sorry for the last post as the code isn't displayed properly.
Here it is submit2.jpdl.xml
|
| <pageflow-definition xmlns="http://jboss.com/products/seam/pageflow"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation=
| "http://jboss.com/products/seam/pageflow http://jboss.com/products/seam/pageflow-1.2.xsd"
| name="submit2">
|
| <start-page name="page2" view-id="/page2.jspx" >
| <transition name="yes" to="page3">
| </transition>
|
| <transition name="back" to="start"></transition>
| </start-page>
|
| <page name="page3" view-id="/page3.jspx" back="enabled">
| <redirect/>
| <transition name="back" to="page2"></transition>
| <transition name="yes" to="page4"/>
| </page>
|
| <page name="page4" view-id="/page4.jspx" back="enabled">
| <redirect/>
| <transition to="start" name="yes"></transition>
| <transition name="back" to="page3"></transition>
| </page>
|
| <page view-id="/login.jspx" name="start" >
| </page>
|
| </pageflow-definition>
|
|
Can you tell me how to read this xml . Is it read internally by the seam?
I had made the entry in pages.xml
|
| <!DOCTYPE pages PUBLIC
| "-//JBoss/Seam Pages Configuration DTD 1.2//EN"
| "http://jboss.com/products/seam/pages-1.2.dtd">
|
| <pages>
| <page view-id="/numberGuess.jspx">
| <begin-conversation join="true" pageflow="numberGuess"/>
| </page>
| <page view-id="/confirm.jspx">
| <begin-conversation nested="true" pageflow="cheat"/>
| </page>
| <page view-id="/page2.jspx">
| <begin-conversation nested="true" pageflow="submit2"/>
| </page>
| </pages>
|
|
Can you provide the sample test code for this submit2.jpdl.xml
Here i need to find out the current page,current node and the next page.
I tried like the jbpm way to read the submit2.jpdl.xml but with no result.
|
| ProcessDefinition pageflowDefinition =Jbpm.instance().getPageflowProcessDefinition("submit2");
|
|
Can anybody provide the sample test code for that. i m in urgency..
thanks,
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057550#4057550
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057550
18Â years, 10Â months