Examples of destroyScope()


Examples of org.activiti.engine.impl.persistence.entity.ExecutionEntity.destroyScope()

    public Object execute(CommandContext commandContext) {

        ExecutionEntity executionEntity = commandContext.getExecutionEntityManager().findExecutionById(processInstanceId);

        executionEntity.destroyScope(jumpOrigin);

        ProcessDefinitionImpl processDefinition = executionEntity.getProcessDefinition();
        ActivityImpl activity = processDefinition.findActivity(activityId);

        executionEntity.executeActivity(activity);
View Full Code Here

Examples of org.activiti.engine.impl.pvm.delegate.ActivityExecution.destroyScope()

   
    PvmActivity terminateEndEventActivity = execution.getActivity();   
    ActivityExecution scopeExecution = ScopeUtil.findScopeExecution(execution);
   
    // destroy the scope
    scopeExecution.destroyScope("terminate end event fired");
   
    // set the scope execution to the terminate end event and make it end here.
    // (the history should reflect that the execution ended here and we want an 'end time' for the
    // historic activity instance.)
    ((InterpretableExecution)scopeExecution).setActivity((ActivityImpl) terminateEndEventActivity);
View Full Code Here

Examples of org.activiti.engine.impl.pvm.delegate.ActivityExecution.destroyScope()

    }
   
    ActivityExecution scopeExecution = ScopeUtil.findScopeExecutionForScope((ExecutionEntity)execution, cancelBoundaryEvent.getParentActivity());   
   
    // end all executions and process instances in the scope of the transaction
    scopeExecution.destroyScope("cancel end event fired");
   
    // the scope execution executes the boundary event
    InterpretableExecution outgoingExecution = (InterpretableExecution)scopeExecution;
    outgoingExecution.setActivity(cancelBoundaryEvent);
    outgoingExecution.setActive(true);
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.