Example #1
0
        public virtual void Insert()
        {
            CommandContext commandContext = context.Impl.Context.CommandContext;

            // add link to execution and deployment
            ExecutionEntity execution = Execution;

            if (execution != null)
            {
                execution.AddJob(this);

                ProcessDefinitionImpl processDefinition = execution.ProcessDefinition;//.getProcessDefinition();
                this.DeploymentId = processDefinition.DeploymentId;
            }
            commandContext.JobManager.InsertJob(this);
        }