Examples of abortProcessInstance()


Examples of org.drools.runtime.StatefulKnowledgeSession.abortProcessInstance()

                           processInstance.getState() );
        ksession.getWorkItemManager().registerWorkItemHandler( workName,
                                                               null );

        try {
            ksession.abortProcessInstance( processInstanceId );
            Assert.fail( "should fail if WorkItemHandler for" + workName + "is not registered" );
        } catch ( WorkItemHandlerNotFoundException wihnfe ) {

        }
View Full Code Here

Examples of org.drools.runtime.StatefulKnowledgeSession.abortProcessInstance()

        assertTrue(processInstance.getState() == ProcessInstance.STATE_ACTIVE);
        Thread.sleep(1000);
    assertProcessInstanceActive(processInstance.getId(), ksession);
        Thread.sleep(1000);
    assertProcessInstanceActive(processInstance.getId(), ksession);
    ksession.abortProcessInstance(processInstance.getId());
        Thread.sleep(1000);
    }

    public void testTimerBoundaryEventInterrupting() throws Exception {
        KnowledgeBase kbase = createKnowledgeBase("BPMN2-TimerBoundaryEventInterrupting.bpmn2");
View Full Code Here

Examples of org.drools.runtime.StatefulKnowledgeSession.abortProcessInstance()

        // now wait for 1 second for timer to trigger
        Thread.sleep(1000);
    assertProcessInstanceActive(processInstance.getId(), ksession);
        Thread.sleep(1000);
    assertProcessInstanceActive(processInstance.getId(), ksession);
    ksession.abortProcessInstance(processInstance.getId());
        Thread.sleep(1000);
    }

    public void testIntermediateCatchEventCondition() throws Exception {
        KnowledgeBase kbase = createKnowledgeBase("BPMN2-IntermediateCatchEventCondition.bpmn2");
View Full Code Here

Examples of org.drools.runtime.StatefulKnowledgeSession.abortProcessInstance()

    public Object execute(Context context) {
        StatefulKnowledgeSession ksession = ((KnowledgeCommandContext) context).getStatefulKnowledgesession();
    if (processInstanceId == null) {
      return null;
    }
    ksession.abortProcessInstance(processInstanceId);
    return null;
  }

  public String toString() {
    return "session.abortProcessInstance(" + processInstanceId + ");";
View Full Code Here

Examples of org.drools.runtime.StatefulKnowledgeSession.abortProcessInstance()

    public Object execute(Context context) {
        StatefulKnowledgeSession ksession = ((KnowledgeCommandContext) context).getStatefulKnowledgesession();
        if (processInstanceId == null) {
            return null;
        }
        ksession.abortProcessInstance(processInstanceId);
        return null;
    }

    public String toString() {
        return "session.abortProcessInstance(" + processInstanceId + ");";
View Full Code Here

Examples of org.enhydra.shark.api.client.wfmc.wapi.WAPI.abortProcessInstance()

            Shark shark = Shark.getInstance();
            WAPI wapi = shark.getWAPIConnection();
            WMSessionHandle sessionHandle = sc.getSessionHandle();

            wapi.abortProcessInstance(sessionHandle, processId);
            aborted = true;

            // audit trail for aborted activity instances
            Collection<WorkflowActivity> activityList = getActivityList(processId, 0, 1000, null, false); //getProcessActivityInstanceList(processId);
            for (WorkflowActivity activity : activityList) {
View Full Code Here

Examples of org.fireflow.engine.persistence.IPersistenceService.abortProcessInstance()

    public void abort() throws EngineException {
        if (this.state.intValue() == IProcessInstance.COMPLETED || this.state.intValue() == IProcessInstance.CANCELED) {
            throw new EngineException(this, this.getWorkflowProcess(), "The process instance can not be aborted,the state of this process instance is " + this.getState());
        }
        IPersistenceService persistenceService = rtCtx.getPersistenceService();
        persistenceService.abortProcessInstance(this);
    }


    /**
     * 触发process instance相关的事件
View Full Code Here

Examples of org.kie.api.runtime.KieSession.abortProcessInstance()

    public Void execute(Context context) {
        KieSession ksession = ((KnowledgeCommandContext) context).getKieSession();
        if (processInstanceId == null) {
            return null;
        }
        ksession.abortProcessInstance(processInstanceId);
        return null;
    }

    public String toString() {
        return "session.abortProcessInstance(" + processInstanceId + ");";
View Full Code Here

Examples of org.kie.api.runtime.KieSession.abortProcessInstance()

    public Void execute(Context context) {
        KieSession ksession = ((KnowledgeCommandContext) context).getKieSession();
        if (processInstanceId == null) {
            return null;
        }
        ksession.abortProcessInstance(processInstanceId);
        return null;
    }

    public String toString() {
        return "session.abortProcessInstance(" + processInstanceId + ");";
View Full Code Here

Examples of org.kie.api.runtime.KieSession.abortProcessInstance()

    public Object execute(Context context) {
        KieSession ksession = ((KnowledgeCommandContext) context).getKieSession();
        if (processInstanceId == null) {
            return null;
        }
        ksession.abortProcessInstance(processInstanceId);
        return null;
    }

    public String toString() {
        return "session.abortProcessInstance(" + processInstanceId + ");";
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.