Examples of newProcessInstance()


Examples of org.jbpm.JbpmContext.newProcessInstance()

        final InputStream is = ClassUtil.getResourceAsStream(PROCESS_DEFINITION, getClass()) ;
        final ProcessDefinition processDefinition = ProcessDefinition.parseXmlInputStream(is) ;
        jbpmContext.deployProcessDefinition(processDefinition) ;
       
        // Create process instance
        final ProcessInstance processInstance = jbpmContext.newProcessInstance(processDefinition.getName()) ;
       
        // Start process instance
        processInstance.signal() ;
       
        jbpmContext.close() ;
View Full Code Here

Examples of org.jbpm.JbpmContext.newProcessInstance()

        final InputStream is = ClassUtil.getResourceAsStream(PROCESS_DEFINITION, getClass()) ;
        final ProcessDefinition processDefinition = ProcessDefinition.parseXmlInputStream(is) ;
        jbpmContext.deployProcessDefinition(processDefinition) ;
       
        // Create process instance
        final ProcessInstance processInstance = jbpmContext.newProcessInstance(processDefinition.getName()) ;
        processInstanceId = processInstance.getId() ;
       
        // Start process instance
        processInstance.signal() ;
       
View Full Code Here

Examples of org.jbpm.JbpmContext.newProcessInstance()

        //Extract a process definition from the processdefinition.xml file.
        ProcessDefinition processDefinition = ProcessDefinition.parseXmlResource(PROCESS_DEF_XML);
        assertNotNull(processDefinition);
        //Create an instance of the process definition.
        jbpmContext.deployProcessDefinition(processDefinition);
        ProcessInstance processInstance = jbpmContext.newProcessInstance("testTimer");
        processInstanceId = processInstance.getId();
        assertTrue(
                "Instance is in start state",
                "start".equals(processInstance.getRootToken().getNode().getName()));
        processInstance.getContextInstance().createVariable("processingTime", "3000");
View Full Code Here

Examples of org.jbpm.JbpmContext.newProcessInstance()

            = ProcessDefinition.parseXmlResource(PROCESS_DEF_XML);
        assertNotNull(processDefinition);
        //Create an instance of the process definition.
        jbpmContext.deployProcessDefinition(processDefinition);
        //processInstance = new ProcessInstance(processDefinition);
        ProcessInstance processInstance = jbpmContext.newProcessInstance("testExceptionHandling");
        assertTrue(
                "Instance is in start state",
                "start".equals(processInstance.getRootToken().getNode().getName()));
        processInstanceId = processInstance.getId();
        jbpmContext.close();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.