[JBoss jBPM] - Re: process instance and groups
by ricardomarques
btw continuing a bit my saga. The same process, now the full version:
| <start-state name="enter request">
| <task name="request entry">
| <controller>
| <variable name="start date" access="read,write,required"></variable>
| <variable name="duration" access="read,write,required"></variable>
| </controller>
| <assignment expression="group(users)"></assignment>
| </task>
| <transition name="" to="evaluate request"></transition>
| </start-state>
| <end-state name="end"></end-state>
| <task-node name="evaluate request">
| <task name="entry evaluation">
| <controller>
| <variable name="start date" access="read"></variable>
| <variable name="duration" access="read"></variable>
| <variable name="info" access="read"></variable>
| <variable name="decision"></variable>
| </controller>
| <assignment expression="group(users)"></assignment>
| </task>
| <transition name="More info needed" to="give addition info"></transition>
| <transition name="approve/disapprove" to="end"></transition>
| </task-node>
| <task-node name="give addition info">
| <task name="additional info entry">
| <controller>
| <variable name="start date" access="read"></variable>
| <variable name="duration" access="read"></variable>
| <variable name="info"></variable>
| </controller>
| <assignment expression="group(users)"></assignment>
| </task>
| <transition name="" to="evaluate request"></transition>
| </task-node>
|
After I do the work on start task, i move on to another node (task), that node is assign to a group, still i don't get the not either on the user task list or the group task list.
I'm getting the group task list like this:
| ArrayList list = new ArrayList();
| list.add(this.username);
|
| return jbpmContext.getGroupTaskList(list);
|
thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060497#4060497
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4060497
18Â years, 9Â months
[JBoss Seam] - [2.0beta1]s:button + pages.xml behaviour change
by ellenzhao
I had this code always worked prior to the migration to 2.0 beta1:
in the new-recipe.xhtml:
| <s:button value="Cancel Creating New Recipe"
| action="#{recipeManager.cancelNewRecipe}" view="/home.xhtml" />
|
in the pages.xml:
| <page view-id="/new-recipe.xhtml">
| <navigation from-action="#{recipeManager.cancelNewRecipe}">
| <redirect view-id="/home.xhtml" />
| </navigation>
| </page>
|
in the RecipeManagerImpl.java:
| @End
| public void cancelNewRecipe() {
| entityManager.remove(this.recipe);
| }
But now the page simply did not redict, I had to change the code in new-recipe.xhtml to make the redirection happen:
| <s:button value="Cancel Creating New Recipe"
| action="#{recipeManager.cancelNewRecipe}" view="/home.xhtml" />
|
Anybody knows why? Thanks in advance!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060495#4060495
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4060495
18Â years, 9Â months
[JBoss jBPM] - Re: UI forms in Struts 2
by kukeltje
"bephinney" wrote : In our application the UI is built with Struts 2. We will not be using JSF or Seam. How best can we integrate our UI Task forms with JBPM?{/quote]
|
| By using the jBPM API (look at the current webconsole on how to do that)
|
| "bephinney" wrote : In the Advanced tab of the Task dialog, there is an option to generate a form. This creates an xhtml doc ready for JSF. Also a form.xml is created mapping a task to the form page.
| |
| | Is there a mechanism that I can use to leverage the form.xml but instead reference a struts action, mapping or page. Also is there a way to tie my form parameters back to the task variables?
| |
|
| Yes, by implementing something in your framework that is identical to what the webconsole does.
|
| "bephinney" wrote : Thanks for the help.
|
| Probably not the answers you wanted, but this is as detailed as I can get without spending to much time on it
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060489#4060489
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4060489
18Â years, 9Â months