[jboss-user] [jBPM] - Re: Connection name attribute, conditional flow without gateways

Kamil Prochazka do-not-reply at jboss.com
Mon Jul 2 09:25:08 EDT 2012


Kamil Prochazka [https://community.jboss.org/people/konias] created the discussion

"Re: Connection name attribute, conditional flow without gateways"

To view the discussion, visit: https://community.jboss.org/message/745464#745464

--------------------------------------------------------------
We are thinking about migration from jBPM3 which have access to these variables and allows multiple transitions on node. 
We were using name of these transitions as resource bundle key and generating form buttons etc. Processes are plugable to platform so we'have been using methods like take transition by name and so on. 
Also it's usefull for reporting when we track execution path and we want to know transition names.

So I would like to know if it will be possible in future releases to specify multiple transitions from node, now it's possible as i said with jbpm.enable.multi.con prop.

Let say i want to get all EndEvent and also their incomming transition (connection) names.

  WorkflowProcess process = (WorkflowProcess) ksession.getKnowledgeBase().getProcess(processId);
                    Node[] nodes = process.getNodes();
                    Set<NodeDescription> endNodes = new HashSet<NodeDescription>();
                    for (Node node : nodes) {
                              if (node instanceof EndNode) {
                                        // Only nodes which terminate all process
                                        if (((EndNode) node).isTerminate()) {
                                                  NodeDescriptionImpl description = new NodeDescriptionImpl();
                                                  description.setName(node.getName());

                                                  Connection connection = node.getIncomingConnections(org.jbpm.workflow.core.Node.CONNECTION_DEFAULT_TYPE).get(0);
                            // now i want to get connection name
                         TransitionDescription t = new TransitionDescription();
                         t.setName( connection.getName() );
                                        }
                              }
                    }
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/745464#745464]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120702/a6feaf9a/attachment-0001.html 


More information about the jboss-user mailing list