コード例 #1
0
        // This method is called when the user clicks the button to associate the workflow.
        private string GetAssociationData()
        {
            BCWorkflowAssociationData data = new BCWorkflowAssociationData()
            {
                GeneralSupervisor = ((PickerEntity)ppGS.ResolvedEntities[0]).Key,
                TaskTitle = txtTitle.Text,
                Message = txtMessage.Text
            };

            // TODO: Return a string that contains the association data that will be passed to the workflow. Typically, this is in XML format.
            return SerializationHelper.SerializeToXml<BCWorkflowAssociationData>(data);
        }
コード例 #2
0
 private void CreateInitialParams_ExecuteCode(object sender, EventArgs e)
 {
     associationData = SerializationHelper.DeserializeFromXml<BCWorkflowAssociationData>(workflowProperties.AssociationData);
 }