protected MessageEntity NewJobInstanceA(AtomicOperationInvocation context) { var message = new MessageEntity(); message.Execution = context.Execution; return(message); }
protected internal IJobHandlerConfiguration ResolveJobHandlerConfigurationA( AtomicOperationInvocation context) { var configuration = new AsyncContinuationJobHandler.AsyncContinuationConfiguration(); configuration.AtomicOperation = context.Operation.CanonicalName; ExecutionEntity execution = context.Execution; IPvmActivity activity = execution.Activity; if (activity != null && activity.AsyncAfter) { if (execution.Transition != 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.TransitionId = execution.Transition.Id; } } return(configuration); }