Esempio n. 1
0
        public virtual void execute(TimerJobConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, string tenantId)
        {
            string       activityId = configuration.TimerElementKey;
            ActivityImpl eventSubprocessActivity = execution.getProcessDefinition().findActivity(activityId);

            if (eventSubprocessActivity != null)
            {
                execution.executeEventHandlerActivity(eventSubprocessActivity);
            }
            else
            {
                throw new ProcessEngineException("Error while triggering event subprocess using timer start event: cannot find activity with id '" + configuration + "'.");
            }
        }
Esempio n. 2
0
        protected internal virtual string getProcessDefinitionTenantId(ExecutionEntity execution)
        {
            ProcessDefinitionEntity processDefinition = (ProcessDefinitionEntity)execution.getProcessDefinition();

            return(processDefinition.TenantId);
        }
Esempio n. 3
0
 protected internal override long?getProcessDefinitionPriority(ExecutionEntity execution, ExternalTaskActivityBehavior param)
 {
     return(getProcessDefinedPriority(execution.getProcessDefinition(), BpmnParse.PROPERTYNAME_TASK_PRIORITY, execution, ""));
 }