Get/Set DataFields using SourceCode.Workflow.Management.dll?

  • 19 September 2012
  • 3 replies
  • 0 views

Badge +4

Is it possible to SET datafield values using the Workflow.Management.dll? 


I have some custom pages used for delegating Process Instance and Worklist item management and would like to update information within the process to note the changes such as audit information.


3 replies

Badge +8

You can use the SourceCode.Workflow.Client API. There is a OpenProcessInstance method that allows you to set Process DataFields. Note that the account executing this needs Admin permissions on the process for this to work.

Badge +4

I knew you could do it using the SourceCode.Workflow.Client.dll but didn't want to include both dll's since it could cause ambiguity.  I did however make it work using that approach however.  I just fully qualified the name references when using the Client library.

Badge +8

Something that can help you with the long namespaces is to create aliases for them. Just posting it as an FYI.


In your header:


using WF = SourceCode.Workflow.Client;


using WFM = SourceCode.Management.Client;


 


In your code:


WF.Connection wfConn = new WF.Connection();


WFM.WorkflowManagementServer mngConn = new WFM.WorkflowManagementServer();

Reply