protected internal virtual void initializeDefinitionKey(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context, BaseCallableElement callableElement) { ExpressionManager expressionManager = context.ExpressionManager; string definitionKey = getDefinitionKey(element, activity, context); ParameterValueProvider definitionKeyProvider = createParameterValueProvider(definitionKey, expressionManager); callableElement.DefinitionKeyValueProvider = definitionKeyProvider; }
protected internal virtual void initializeVersion(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context, BaseCallableElement callableElement) { ExpressionManager expressionManager = context.ExpressionManager; string version = getVersion(element, activity, context); ParameterValueProvider versionProvider = createParameterValueProvider(version, expressionManager); callableElement.VersionValueProvider = versionProvider; }
public override long?getSpecificPriority(ExecutionEntity execution, ExternalTaskActivityBehavior param, string jobDefinitionId) { ParameterValueProvider priorityProvider = param.PriorityValueProvider; if (priorityProvider != null) { return(evaluateValueProvider(priorityProvider, execution, "")); } return(null); }
protected internal virtual long?getActivityPriority <T1>(ExecutionEntity execution, JobDeclaration <T1> jobDeclaration) { if (jobDeclaration != null) { ParameterValueProvider priorityProvider = jobDeclaration.JobPriorityProvider; if (priorityProvider != null) { return(evaluateValueProvider(priorityProvider, execution, describeContext(jobDeclaration, execution))); } } return(null); }
protected internal override long?getSpecificPriority <T1>(ExecutionEntity execution, JobDeclaration <T1> param, string jobDefinitionId) { long?specificPriority = null; JobDefinitionEntity jobDefinition = getJobDefinitionFor(jobDefinitionId); if (jobDefinition != null) { specificPriority = jobDefinition.OverridingJobPriority; } if (specificPriority == null) { ParameterValueProvider priorityProvider = param.JobPriorityProvider; if (priorityProvider != null) { specificPriority = evaluateValueProvider(priorityProvider, execution, describeContext(param, execution)); } } return(specificPriority); }
public InputParameter(string name, ParameterValueProvider valueProvider) : base(name, valueProvider) { }
public ExternalTaskActivityBehavior(ParameterValueProvider topicName, ParameterValueProvider paramValueProvider) { this.topicNameValueProvider = topicName; this.priorityValueProvider = paramValueProvider; }
public IoParameter(string name, ParameterValueProvider valueProvider) { this.name = name; this.valueProvider = valueProvider; }