RuntimeServiceReplaceProcessVersion Method |
Namespace: Advantys.Workflow.Web.Services.Processes.Runtime
public int ReplaceProcessVersion( string processDefinition, string folderName, string processStatus, string processName, int processVersion )
Optional Parameters.
These parameters can be used in the query string or as parameters of the Headers object in the RuntimeService class instance. See example below.
ProcessId (int) | Use the process ID instead of the process name and process version to identify which process to replace. |
FolderId (int) | Specifies the folder ID. Supercedes the Folder name. |
AddNewParticipantsAsGlobal (bool) | Specifies whether or not to import process participants as global participants. Can only be used users who have an Administrator profile. Default = false. |
AddGlobalParticipantAssociations (bool) | Specifies whether or not to import global participant associations. Can only be used users who have an Administrator profile or process managers when the web config parameter AdministrationRe |
UseVersionNumber (bool) | Specifies whether or not to import the process version number. Default = false. |
RuntimeServiceWebService.RuntimeService myRuntimeService = new RuntimeServiceWebService.RuntimeService(); RuntimeServiceWebService.CreateProcessHeader myCreateProcessHeader = new RuntimeServiceWebService.CreateProcessHeader(); myRuntimeService.CreateProcessHeaderValue = myCreateProcessHeader; myCreateProcessHeader.FolderId = folderId; myCreateProcessHeader.AddGlobalParticipantAssociations = addGlobalParticipantAssociations; myCreateProcessHeader.ImportNewParticipantsAsGlobal = importNewParticipantsAsGlobal; myCreateProcessHeader.ProcessId = processId; int replacedProcessId = myRuntimeService.ReplaceProcessVersion(processDefinition, folderName, processStatus);