[jboss-user] [jBPM] - jBPM get outgoing Transition names

Sebastian Herbst do-not-reply at jboss.com
Thu Mar 25 04:59:07 EDT 2010


Sebastian Herbst [http://community.jboss.org/people/Herbst] created the discussion

"jBPM get outgoing Transition names"

To view the discussion, visit: http://community.jboss.org/message/533890#533890

--------------------------------------------------------------
Hello,
I'm new to jBPM and still fooling around with some examples. The goal is to integrate jBPM in an existing framework, but until now I'm not able to get the outgoing Transitions of a state.



public class Workflow {    public Workflow(String jpdl_file)    {        // Setup Workflow-Engine        ProcessEngine processEngine = new Configuration().buildProcessEngine();        RepositoryService repositoryService = processEngine.getRepositoryService();        ExecutionService executionService = processEngine.getExecutionService();        // Deploy Workflows/Prozessdiagramm        NewDeployment newDeployment = repositoryService.createDeployment().addResourceFromClasspath(jpdl_file);        String deploymentDbid = newDeployment.deploy();                //Set Rights        Map<String, Object> variables = new HashMap<String, Object>();        variables.put("user", new User());        variables.put("group", new Group());        // Start Workflow        // TODO executionsService nicht über den Namen aufrufen        ProcessInstance processInstance = executionService.startProcessInstanceByKey("testTask", variables);        Execution execution = executionService.findProcessInstanceById(processInstance.getId());    }}


So far I'm just starting a new ProcessEngine, deploy a given workflow, setup some variables and start an new Instance of the given Workflow.
So for now the Workflow itself isn't so important. At least I just have to know how to get the active node(s) of this wf and its transitions.

Thanks and Greetings
Herbst

--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[http://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/20100325/49eda719/attachment.html 


More information about the jboss-user mailing list