示例#1
0
        private void cmdStartWorkflow_Click(object sender, EventArgs e)
        {
            // create gateway
            var centralDAL = CssContext.Instance.GetDAL(string.Empty) as DAL;
            CentralMessageGateway messageGateway = new CentralMessageGateway(centralDAL);

            // create message
            var msg = new StartWorkflowMessage();

            msg.PropertyBag.WorkflowName = "CSWF";
            msg.PropertyBag.ContactID    = _contactID;

            //send
            messageGateway.SendMessage <StartWorkflowMessage>(msg);
        }
示例#2
0
        private void cmdStartWorkflow_Click(object sender, EventArgs e)
        {
            // create gateway
            var centralDAL = CssContext.Instance.GetDAL(string.Empty) as DAL;
            CentralMessageGateway messageGateway = new CentralMessageGateway(centralDAL);

            // create message
            var msg = new StartWorkflowMessage();
            msg.PropertyBag.WorkflowName = "CSWF";
            msg.PropertyBag.ContactID =  _contactID;

            //send
            messageGateway.SendMessage<StartWorkflowMessage>(msg);
        }