protected internal virtual CmmnExecution eventNotificationsStarted(CmmnExecution execution) { // set current case execution as "TERMINATED" execution.CurrentState = TERMINATED; return(execution); }
public virtual void execute(CmmnExecution execution) { execution.CurrentState = SuspendingState; CmmnActivityBehavior behavior = getActivityBehavior(execution); triggerBehavior(behavior, execution); }
protected internal virtual CmmnExecution eventNotificationsStarted(CmmnExecution execution) { // the case instance perform a transition directly // to state ACTIVE execution.CurrentState = ACTIVE; return(execution); }
protected internal override void postTransitionNotification(CmmnExecution execution) { CmmnExecution parent = execution.Parent; if (parent != null) { notifyParent(parent, execution); } }
protected internal override void postTransitionNotification(CmmnExecution execution) { // the case instance is associated with the // casePlanModel as activity CmmnActivityBehavior behavior = getActivityBehavior(execution); // perform start() on associated behavior // because the case instance is ACTIVE behavior.started(execution); }
protected internal virtual void notifyParent(CmmnExecution parent, CmmnExecution execution) { CmmnActivityBehavior behavior = getActivityBehavior(parent); if (behavior is CmmnCompositeActivityBehavior) { CmmnCompositeActivityBehavior compositeBehavior = (CmmnCompositeActivityBehavior)behavior; compositeBehavior.handleChildTermination(parent, execution); } }
protected internal virtual CmmnExecution eventNotificationsStarted(CmmnExecution execution) { CmmnActivityBehavior behavior = getActivityBehavior(execution); behavior.onCreate(execution); execution.CurrentState = AVAILABLE; return(execution); }
protected internal virtual CmmnExecution eventNotificationsStarted(CmmnExecution execution) { CmmnActivityBehavior behavior = getActivityBehavior(execution); triggerBehavior(behavior, execution); CaseExecutionState newState = getPreviousState(execution); execution.CurrentState = newState; return(execution); }
protected internal override void preTransitionNotification(CmmnExecution execution) { CmmnExecution parent = execution.Parent; if (parent != null) { CmmnActivityBehavior behavior = getActivityBehavior(parent); if (behavior is CmmnCompositeActivityBehavior) { CmmnCompositeActivityBehavior compositeBehavior = (CmmnCompositeActivityBehavior)behavior; compositeBehavior.handleChildDisabled(parent, execution); } } }
protected internal override void postTransitionNotification(CmmnExecution execution) { if (!execution.CaseInstanceExecution) { execution.remove(); } CmmnExecution parent = execution.Parent; if (parent != null) { notifyParent(parent, execution); } }
public static CmmnActivityBehavior getActivityBehavior(CmmnExecution execution) { string id = execution.Id; CmmnActivity activity = execution.Activity; ensureNotNull(typeof(PvmException), "Case execution '" + id + "' has no current activity.", "activity", activity); CmmnActivityBehavior behavior = activity.ActivityBehavior; ensureNotNull(typeof(PvmException), "There is no behavior specified in " + activity + " for case execution '" + id + "'.", "behavior", behavior); return(behavior); }
public virtual HistoryEvent createCaseInstanceCreateEvt(DelegateCaseExecution caseExecution) { //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.camunda.bpm.engine.impl.cmmn.entity.runtime.CaseExecutionEntity caseExecutionEntity = (org.camunda.bpm.engine.impl.cmmn.entity.runtime.CaseExecutionEntity) caseExecution; CaseExecutionEntity caseExecutionEntity = (CaseExecutionEntity)caseExecution; // create event instance HistoricCaseInstanceEventEntity evt = newCaseInstanceEventEntity(caseExecutionEntity); // initialize event initCaseInstanceEvent(evt, caseExecutionEntity, HistoryEventTypes.CASE_INSTANCE_CREATE); // set create time evt.CreateTime = ClockUtil.CurrentTime; // set create user id evt.CreateUserId = Context.CommandContext.AuthenticatedUserId; // set super case instance id CmmnExecution superCaseExecution = caseExecutionEntity.SuperCaseExecution; if (superCaseExecution != null) { evt.SuperCaseInstanceId = superCaseExecution.CaseInstanceId; } // set super process instance id ExecutionEntity superExecution = caseExecutionEntity.getSuperExecution(); if (superExecution != null) { evt.SuperProcessInstanceId = superExecution.ProcessInstanceId; } return(evt); }
protected internal override void postTransitionNotification(CmmnExecution execution) { execution.performOperation(CmmnAtomicOperation_Fields.CASE_EXECUTION_CREATED); }
protected internal override void eventNotificationsCompleted(CmmnExecution execution) { execution.remove(); }
protected internal override void triggerBehavior(CmmnActivityBehavior behavior, CmmnExecution execution) { behavior.onParentSuspension(execution); }
protected internal override void postTransitionNotification(CmmnExecution execution) { CmmnActivityBehavior behavior = getActivityBehavior(execution); behavior.reactivated(execution); }
protected internal abstract void triggerBehavior(CmmnActivityBehavior behavior, CmmnExecution execution);
public virtual bool isAsync(CmmnExecution execution) { return(false); }
protected internal override void postTransitionNotification(CmmnExecution execution) { execution.deleteCascade(); }
protected internal virtual CaseExecutionState getPreviousState(CmmnExecution execution) { return(execution.PreviousState); }
public VariableOnPartListener(CmmnExecution execution) { this.execution = execution; }
protected internal override void triggerBehavior(CmmnActivityBehavior behavior, CmmnExecution execution) { behavior.onManualCompletion(execution); }
public virtual void execute(CmmnExecution execution) { CmmnActivityBehavior behavior = getActivityBehavior(execution); behavior.created(execution); }
protected internal virtual string getDefinitionKey(CmmnActivityExecution execution) { CmmnExecution caseExecution = (CmmnExecution)execution; return(CallableElement.getDefinitionKey(caseExecution)); }
public virtual void execute(CmmnExecution execution) { CmmnActivityBehavior behavior = getActivityBehavior(execution); behavior.fireEntryCriteria(execution); }
protected internal override void triggerBehavior(CmmnActivityBehavior behavior, CmmnExecution execution) { behavior.onTermination(execution); }
protected internal virtual int?getVersion(CmmnActivityExecution execution) { CmmnExecution caseExecution = (CmmnExecution)execution; return(CallableElement.getVersion(caseExecution)); }
protected internal virtual CmmnExecution eventNotificationsStarted(CmmnExecution execution) { execution.CurrentState = SUSPENDED; return(execution); }