strICT.InFlow.Db.Contracts.InFlow.T_Task.toWorkflowNotification C# (CSharp) Method

toWorkflowNotification() public method

convert task to WorkflowNotification
public toWorkflowNotification ( ) : WorkflowNotification
return WorkflowNotification
        public WorkflowNotification toWorkflowNotification()
        {
            return new WorkflowNotification()
            {
                Properties =
                {
                    { "NotificationType" , "NewTask" }
                },
                Content = new Dictionary<string, object>()
                {
                    { "Type", Type },
                    { "WFId", WFId },
                    { "Name", Name },
                    { "Done", Done },
                    { "IsEndState", IsEndState },
                    { "ReadableParameters", ReadableParameters },
                    { "EditableParameters", EditableParameters },
                    { "TaskProperties", listToString(TaskProperties) },
                    { "InternalOrderId", InternalOrderId}
                }
            };
        }

Usage Example

コード例 #1
0
        protected override void Execute(CodeActivityContext context)
        {
            System.Net.NetworkCredential credentials = new System.Net.NetworkCredential(context.GetValue(cfgWFMUsername), context.GetValue(cfgWFMPassword));

            T_Task newTask = new T_Task("R", context.GetValue(globalWFId), context.GetValue(Name), false, false, context.GetValue(isEndState), "", "", context.GetValue(messages), context.GetValue(OrderId));//,0,"");
            
            WorkflowManagementClient client = new WorkflowManagementClient(new Uri(context.GetValue(cfgManagementScopeAddress)), credentials);
            client.PublishNotification(newTask.toWorkflowNotification());
        }
All Usage Examples Of strICT.InFlow.Db.Contracts.InFlow.T_Task::toWorkflowNotification