org.activiti.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior Java Examples
The following examples show how to use
org.activiti.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ClassDelegate.java From activiti6-boot2 with Apache License 2.0 | 5 votes |
protected ActivityBehavior determineBehaviour(ActivityBehavior delegateInstance) { if (hasMultiInstanceCharacteristics()) { multiInstanceActivityBehavior.setInnerActivityBehavior((AbstractBpmnActivityBehavior) delegateInstance); return multiInstanceActivityBehavior; } return delegateInstance; }
Example #2
Source File: ClassDelegate.java From flowable-engine with Apache License 2.0 | 5 votes |
protected ActivityBehavior determineBehaviour(ActivityBehavior delegateInstance, ActivityExecution execution) { if (hasMultiInstanceCharacteristics()) { multiInstanceActivityBehavior.setInnerActivityBehavior((AbstractBpmnActivityBehavior) delegateInstance); return multiInstanceActivityBehavior; } return delegateInstance; }
Example #3
Source File: DefaultActivityBehaviorFactory.java From flowable-engine with Apache License 2.0 | 4 votes |
@Override public SequentialMultiInstanceBehavior createSequentialMultiInstanceBehavior(ActivityImpl activity, AbstractBpmnActivityBehavior innerActivityBehavior) { return new SequentialMultiInstanceBehavior(activity, innerActivityBehavior); }
Example #4
Source File: CustomActivityBehaviorFactory.java From lemon with Apache License 2.0 | 4 votes |
public ParallelMultiInstanceBehavior createParallelMultiInstanceBehavior( ActivityImpl activity, AbstractBpmnActivityBehavior innerActivityBehavior) { return new CustomParallelMultiInstanceBehavior(activity, innerActivityBehavior); }
Example #5
Source File: CustomParallelMultiInstanceBehavior.java From lemon with Apache License 2.0 | 4 votes |
public CustomParallelMultiInstanceBehavior(ActivityImpl activity, AbstractBpmnActivityBehavior originalActivityBehavior) { super(activity, originalActivityBehavior); }
Example #6
Source File: ActivityBehaviorFactoryDelegate.java From openwebflow with BSD 2-Clause "Simplified" License | 4 votes |
public SequentialMultiInstanceBehavior createSequentialMultiInstanceBehavior(ActivityImpl activity, AbstractBpmnActivityBehavior innerActivityBehavior) { return _source.createSequentialMultiInstanceBehavior(activity, innerActivityBehavior); }
Example #7
Source File: ActivityBehaviorFactoryDelegate.java From openwebflow with BSD 2-Clause "Simplified" License | 4 votes |
public ParallelMultiInstanceBehavior createParallelMultiInstanceBehavior(ActivityImpl activity, AbstractBpmnActivityBehavior innerActivityBehavior) { return _source.createParallelMultiInstanceBehavior(activity, innerActivityBehavior); }
Example #8
Source File: AbstractActivityBpmnParseHandler.java From flowable-engine with Apache License 2.0 | 4 votes |
protected void createMultiInstanceLoopCharacteristics(BpmnParse bpmnParse, Activity modelActivity) { MultiInstanceLoopCharacteristics loopCharacteristics = modelActivity.getLoopCharacteristics(); // Activity Behavior MultiInstanceActivityBehavior miActivityBehavior = null; ActivityImpl activity = bpmnParse.getCurrentScope().findActivity(modelActivity.getId()); if (activity == null) { throw new ActivitiException("Activity " + modelActivity.getId() + " needed for multi instance cannot bv found"); } if (loopCharacteristics.isSequential()) { miActivityBehavior = bpmnParse.getActivityBehaviorFactory().createSequentialMultiInstanceBehavior( activity, (AbstractBpmnActivityBehavior) activity.getActivityBehavior()); } else { miActivityBehavior = bpmnParse.getActivityBehaviorFactory().createParallelMultiInstanceBehavior( activity, (AbstractBpmnActivityBehavior) activity.getActivityBehavior()); } // ActivityImpl settings activity.setScope(true); activity.setProperty("multiInstance", loopCharacteristics.isSequential() ? "sequential" : "parallel"); activity.setActivityBehavior(miActivityBehavior); ExpressionManager expressionManager = bpmnParse.getExpressionManager(); // loop cardinality if (StringUtils.isNotEmpty(loopCharacteristics.getLoopCardinality())) { miActivityBehavior.setLoopCardinalityExpression(expressionManager.createExpression(loopCharacteristics.getLoopCardinality())); } // completion condition if (StringUtils.isNotEmpty(loopCharacteristics.getCompletionCondition())) { miActivityBehavior.setCompletionConditionExpression(expressionManager.createExpression(loopCharacteristics.getCompletionCondition())); } // activiti:collection if (StringUtils.isNotEmpty(loopCharacteristics.getInputDataItem())) { if (loopCharacteristics.getInputDataItem().contains("{")) { miActivityBehavior.setCollectionExpression(expressionManager.createExpression(loopCharacteristics.getInputDataItem())); } else { miActivityBehavior.setCollectionVariable(loopCharacteristics.getInputDataItem()); } } // activiti:elementVariable if (StringUtils.isNotEmpty(loopCharacteristics.getElementVariable())) { miActivityBehavior.setCollectionElementVariable(loopCharacteristics.getElementVariable()); } // activiti:elementIndexVariable if (StringUtils.isNotEmpty(loopCharacteristics.getElementIndexVariable())) { miActivityBehavior.setCollectionElementIndexVariable(loopCharacteristics.getElementIndexVariable()); } }
Example #9
Source File: DefaultActivityBehaviorFactory.java From flowable-engine with Apache License 2.0 | 4 votes |
@Override public ParallelMultiInstanceBehavior createParallelMultiInstanceBehavior(ActivityImpl activity, AbstractBpmnActivityBehavior innerActivityBehavior) { return new ParallelMultiInstanceBehavior(activity, innerActivityBehavior); }
Example #10
Source File: DefaultActivityBehaviorFactory.java From activiti6-boot2 with Apache License 2.0 | 4 votes |
public SequentialMultiInstanceBehavior createSequentialMultiInstanceBehavior(Activity activity, AbstractBpmnActivityBehavior innerActivityBehavior) { return new SequentialMultiInstanceBehavior(activity, innerActivityBehavior); }
Example #11
Source File: TestActivityBehaviorFactory.java From flowable-engine with Apache License 2.0 | 4 votes |
@Override public ParallelMultiInstanceBehavior createParallelMultiInstanceBehavior( ActivityImpl activity, AbstractBpmnActivityBehavior innerActivityBehavior) { return wrappedActivityBehaviorFactory.createParallelMultiInstanceBehavior(activity, innerActivityBehavior); }
Example #12
Source File: TestActivityBehaviorFactory.java From flowable-engine with Apache License 2.0 | 4 votes |
@Override public SequentialMultiInstanceBehavior createSequentialMultiInstanceBehavior( ActivityImpl activity, AbstractBpmnActivityBehavior innerActivityBehavior) { return wrappedActivityBehaviorFactory.createSequentialMultiInstanceBehavior(activity, innerActivityBehavior); }
Example #13
Source File: TestActivityBehaviorFactory.java From activiti6-boot2 with Apache License 2.0 | 4 votes |
@Override public ParallelMultiInstanceBehavior createParallelMultiInstanceBehavior(Activity activity, AbstractBpmnActivityBehavior innerActivityBehavior) { return wrappedActivityBehaviorFactory.createParallelMultiInstanceBehavior(activity, innerActivityBehavior); }
Example #14
Source File: TestActivityBehaviorFactory.java From activiti6-boot2 with Apache License 2.0 | 4 votes |
@Override public SequentialMultiInstanceBehavior createSequentialMultiInstanceBehavior(Activity activity, AbstractBpmnActivityBehavior innerActivityBehavior) { return wrappedActivityBehaviorFactory.createSequentialMultiInstanceBehavior(activity, innerActivityBehavior); }
Example #15
Source File: AbstractActivityBpmnParseHandler.java From activiti6-boot2 with Apache License 2.0 | 4 votes |
protected void createMultiInstanceLoopCharacteristics(BpmnParse bpmnParse, Activity modelActivity) { MultiInstanceLoopCharacteristics loopCharacteristics = modelActivity.getLoopCharacteristics(); // Activity Behavior MultiInstanceActivityBehavior miActivityBehavior = null; if (loopCharacteristics.isSequential()) { miActivityBehavior = bpmnParse.getActivityBehaviorFactory().createSequentialMultiInstanceBehavior(modelActivity, (AbstractBpmnActivityBehavior) modelActivity.getBehavior()); } else { miActivityBehavior = bpmnParse.getActivityBehaviorFactory().createParallelMultiInstanceBehavior(modelActivity, (AbstractBpmnActivityBehavior) modelActivity.getBehavior()); } modelActivity.setBehavior(miActivityBehavior); ExpressionManager expressionManager = Context.getProcessEngineConfiguration().getExpressionManager(); // loop cardinality if (StringUtils.isNotEmpty(loopCharacteristics.getLoopCardinality())) { miActivityBehavior.setLoopCardinalityExpression(expressionManager.createExpression(loopCharacteristics.getLoopCardinality())); } // completion condition if (StringUtils.isNotEmpty(loopCharacteristics.getCompletionCondition())) { miActivityBehavior.setCompletionConditionExpression(expressionManager.createExpression(loopCharacteristics.getCompletionCondition())); } // activiti:collection if (StringUtils.isNotEmpty(loopCharacteristics.getInputDataItem())) { if (loopCharacteristics.getInputDataItem().contains("{")) { miActivityBehavior.setCollectionExpression(expressionManager.createExpression(loopCharacteristics.getInputDataItem())); } else { miActivityBehavior.setCollectionVariable(loopCharacteristics.getInputDataItem()); } } // activiti:elementVariable if (StringUtils.isNotEmpty(loopCharacteristics.getElementVariable())) { miActivityBehavior.setCollectionElementVariable(loopCharacteristics.getElementVariable()); } // activiti:elementIndexVariable if (StringUtils.isNotEmpty(loopCharacteristics.getElementIndexVariable())) { miActivityBehavior.setCollectionElementIndexVariable(loopCharacteristics.getElementIndexVariable()); } }
Example #16
Source File: DefaultActivityBehaviorFactory.java From activiti6-boot2 with Apache License 2.0 | 4 votes |
public ParallelMultiInstanceBehavior createParallelMultiInstanceBehavior(Activity activity, AbstractBpmnActivityBehavior innerActivityBehavior) { return new ParallelMultiInstanceBehavior(activity, innerActivityBehavior); }
Example #17
Source File: ActivityBehaviorFactory.java From flowable-engine with Apache License 2.0 | votes |
public abstract SequentialMultiInstanceBehavior createSequentialMultiInstanceBehavior(ActivityImpl activity, AbstractBpmnActivityBehavior innerActivityBehavior);
Example #18
Source File: ActivityBehaviorFactory.java From flowable-engine with Apache License 2.0 | votes |
public abstract ParallelMultiInstanceBehavior createParallelMultiInstanceBehavior(ActivityImpl activity, AbstractBpmnActivityBehavior innerActivityBehavior);
Example #19
Source File: ActivityBehaviorFactory.java From activiti6-boot2 with Apache License 2.0 | votes |
public abstract ParallelMultiInstanceBehavior createParallelMultiInstanceBehavior(Activity activity, AbstractBpmnActivityBehavior innerActivityBehavior);
Example #20
Source File: ActivityBehaviorFactory.java From activiti6-boot2 with Apache License 2.0 | votes |
public abstract SequentialMultiInstanceBehavior createSequentialMultiInstanceBehavior(Activity activity, AbstractBpmnActivityBehavior innerActivityBehavior);