Examples of ActivityImpl


Examples of org.camunda.bpm.engine.impl.pvm.process.ActivityImpl

    ExecutionEntity execution = (ExecutionEntity) pi;

    ProcessDefinitionImpl processDefinition = execution.getProcessDefinition();
    assertNotNull(processDefinition);

    ActivityImpl boundaryActivity = processDefinition.findActivity("boundaryTimerWithFailedJobRetryTimeCycle");
    assertNotNull(boundaryActivity);

    this.checkFoxFailedJobConfig(boundaryActivity);
  }
View Full Code Here

Examples of org.camunda.bpm.engine.impl.pvm.process.ActivityImpl

    ExecutionEntity execution = (ExecutionEntity) pi;

    ProcessDefinitionImpl processDefinition = execution.getProcessDefinition();
    assertNotNull(processDefinition);

    ActivityImpl boundaryActivity = processDefinition.findActivity("boundaryTimerWithoutFailedJobRetryTimeCycle");
    assertNotNull(boundaryActivity);

    this.checkNotContainingFoxFailedJobConfig(boundaryActivity);
  }
View Full Code Here

Examples of org.camunda.bpm.engine.impl.pvm.process.ActivityImpl

    ExecutionEntity execution = (ExecutionEntity) pi;

    ProcessDefinitionImpl processDefinition = execution.getProcessDefinition();
    assertNotNull(processDefinition);

    ActivityImpl startEvent = processDefinition.findActivity("startEventFailedJobRetryTimeCycle");
    assertNotNull(startEvent);

    this.checkFoxFailedJobConfig(startEvent);
  }
View Full Code Here

Examples of org.camunda.bpm.engine.impl.pvm.process.ActivityImpl

    ExecutionEntity execution = (ExecutionEntity) pi;

    ProcessDefinitionImpl processDefinition = execution.getProcessDefinition();
    assertNotNull(processDefinition);

    ActivityImpl timer = processDefinition.findActivity("timerEventWithFailedJobRetryTimeCycle");
    assertNotNull(timer);

    this.checkFoxFailedJobConfig(timer);
  }
View Full Code Here

Examples of org.camunda.bpm.engine.impl.pvm.process.ActivityImpl

    ExecutionEntity execution = (ExecutionEntity) pi;

    ProcessDefinitionImpl processDefinition = execution.getProcessDefinition();
    assertNotNull(processDefinition);

    ActivityImpl signal = processDefinition.findActivity("signalWithFailedJobRetryTimeCycle");
    assertNotNull(signal);

    this.checkFoxFailedJobConfig(signal);
  }
View Full Code Here

Examples of org.camunda.bpm.engine.impl.pvm.process.ActivityImpl

    return TYPE;
  }

  public void execute(String configuration, ExecutionEntity execution, CommandContext commandContext) {

    ActivityImpl eventSubprocessActivity = execution.getProcessDefinition()
      .findActivity(configuration);

    if(eventSubprocessActivity != null) {
      execution.executeActivity(eventSubprocessActivity);
View Full Code Here

Examples of org.camunda.bpm.engine.impl.pvm.process.ActivityImpl

  private boolean isParallelMultiInstance(ExecutionEntity execution) {
    if (isParallelMultiInstance == null) { // cache result
      if (eventScopeActivityId == null) {
        isParallelMultiInstance = false;
      } else {
        ActivityImpl activity = execution.getProcessDefinition().findActivity(eventScopeActivityId);
        isParallelMultiInstance = activity.getActivityBehavior() instanceof ParallelMultiInstanceBehavior;
      }
    }
    return isParallelMultiInstance;
  }
View Full Code Here

Examples of org.camunda.bpm.engine.impl.pvm.process.ActivityImpl

  public String getType() {
    return TYPE;
  }

  public void execute(String configuration, ExecutionEntity execution, CommandContext commandContext) {
    ActivityImpl borderEventActivity = execution.getProcessDefinition().findActivity(configuration);

    ensureNotNull("Error while firing timer: border event activity " + configuration + " not found", "borderEventActivity", borderEventActivity);

    try {
View Full Code Here

Examples of org.camunda.bpm.engine.impl.pvm.process.ActivityImpl

    PvmAtomicOperation atomicOperation = findMatchingAtomicOperation(operationName);
    ensureNotNull("Cannot process job with configuration " + configuration, "atomicOperation", atomicOperation);

    // reset transition id.
    if (transitionId != null) {
      ActivityImpl activity = execution.getActivity();
      TransitionImpl transition = activity.findOutgoingTransition(transitionId);
      execution.setTransition(transition);
    }

    commandContext
      .performOperation(atomicOperation, execution);
View Full Code Here

Examples of org.camunda.bpm.engine.impl.pvm.process.ActivityImpl

    return message;
  }

  public void setJobHandlerConfiguration(MessageEntity message, ExecutionEntity execution, AtomicOperation executionOperation) {
    String configuration = executionOperation.getCanonicalName();
    ActivityImpl activity = execution.getActivity();

    if(activity != null && activity.isAsyncAfter()) {
      if(execution.getTransition() != null) {
        // store id of selected transition in case this is async after.
        // id is not serialized with the execution -> we need to remember it as
        // job handler configuration.
        configuration += "$"+execution.getTransition().getId();
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.