-
1. Re: jBPM and the back button
tom.baeyens Mar 27, 2006 2:32 PM (in response to liudan2005)that shouldn't be too hard. you should build a mapping of the view-id's to the jbpm page nodes. and before the jbpm page navigation is activated, the token should be positioned in the node of the view id represented by the request.
i'm not sure, but i believe that the view-ids were the page node names. in that case, the mapping from viewId to pagenode is already available with processDefinition.getNode(viewId); -
2. Re: jBPM and the back button
gavin.king Mar 27, 2006 2:44 PM (in response to liudan2005)Ah, yes, we should support this.
Actually the name of the node is different to the view-id, since multiple nodes can point to the same page.
What you would need to do is store the node name in the Seam PAGE scope. I'll add this to JIRA.
What is the actual code to reposition the token? (I'm too lazy to check the docs.) -
3. Re: jBPM and the back button
liudan2005 Mar 27, 2006 4:00 PM (in response to liudan2005)I'm still not quite sure how to do it cause I'm not familiar with jBPM yet. It would be great if you can add the sample code to dvd example. From what you've described, we're now gonna adopt jBPM for our project. Thanks for your help.
-
4. Re: jBPM and the back button
tom.baeyens Mar 28, 2006 1:38 AM (in response to liudan2005)gavin,
Token.setNode(Node)
You might need ProcessDefinition.getNode(String name); to look up the node. But better is to put the node itself in the pagescope. All jBPM objects are serializable. -
5. Re: jBPM and the back button
gavin.king Mar 28, 2006 5:02 AM (in response to liudan2005)Yes, i found it on the plane. I implemented optional backbutton support for pageflows ;)
-
6. Re: jBPM and the back button
gavin.king Mar 28, 2006 5:04 AM (in response to liudan2005)"liudan2005" wrote:
I'm still not quite sure how to do it cause I'm not familiar with jBPM yet. It would be great if you can add the sample code to dvd example. From what you've described, we're now gonna adopt jBPM for our project. Thanks for your help.
When I finish checking this into CVS, all you'll need to do is:<page view-id="/foo.jsp" backable="true"> ... </page>
-
7. Re: jBPM and the back button
kcounsell Mar 28, 2006 8:17 AM (in response to liudan2005)"gavin.king@jboss.com" wrote:
When I finish checking this into CVS, all you'll need to do is:<page view-id="/foo.jsp" backable="true"> ... </page>
Using "backable" might be a little confusing only because we have backing beans floating around in JSF world. Would "revisitable" be more descriptive?
It'll be a useful addition either way -- thanks for implementing this. -
8. Re: jBPM and the back button
gavin.king Mar 28, 2006 10:59 AM (in response to liudan2005)I don't love the name....
-
9. Re: jBPM and the back button
theute Mar 28, 2006 11:11 AM (in response to liudan2005)I tend to agree with kcounsell. It was my first feeling when seeing "backable".
I would propose "backwardable" it's not a nice name though but it removes the confusion IMO. -
10. Re: jBPM and the back button
kcounsell Mar 30, 2006 8:14 AM (in response to liudan2005)I'm all for removing ambiguity. "Backwardable" seems clear enough.