Пример #1
0
        /// <summary>
        /// Activity entry point
        /// </summary>
        /// <param name="context">Activity context</param>
        protected override void Execute(NativeActivityContext context)
        {
            Logger.Debug("StartWorkflow -> Start");

            WorkflowId.Set(context, context.WorkflowInstanceId.ToString());

            context.ScheduleActivity(_startWorkflowCatch, OnWorkflowCompleteCallback);

            Logger.Debug("StartWorkflow -> End");
        }
Пример #2
0
        protected override void Execute(NativeActivityContext context)
        {
            Logger.Debug("InvokeChildWorkflow -> Start");

            var id = InvokeWorkflow(context.WorkflowInstanceId, WorkflowCode.Get(context), Domain.Get(context), Properties.Get(context), Async.Get(context));

            NewWorkflowId.Set(context, id);
            WorkflowId.Set(context, id);

            if (!Async.Get(context))
            {
                context.ScheduleActivity(_sync, OnChildWorkflowCompleteCallback);
            }

            Logger.Debug("InvokeChildWorkflow -> End");
        }