Workflow Update Variable
The url of the webservice is: /Workflow/WebService/WorkflowService.asmx, the method “ProcessInstanceUpdateVariable” has been added with these parameters:
ProcessInstanceId: ticketid VariableName: name of the variable, if it does not exist, it will be created VariableValue: the new value of the variable ProviderName: The name of the external provider. A new page is in place to manage those providers:: /Common/Admin/ExternalProviderOverview.aspx For each provider these settings are necessary:
Name: the name of the provider, to be used in the webservice Security type: sha1 hash, sha256 hash or fixed token, technical info: in .NET: SHA1: System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(tohash, "SHA1") SHA256: SHA256Managed hashmanager = new SHA256Managed(); byte hash = hashmanager.ComputeHash(Encoding.UTF8.GetBytes(tohash)); Convert.ToBase64String(hash); Security key: with a hash, you add this after the values, with a fixed token this is the security check. This last option is what you will need to use I think unless SM9 allows more complex features. SecurityCheck: when you select provider with fixed token, you need to enter this hash here. If you would prefer more security and use SHA1 or SHA256 is, you need to calculate it like this:: "ProcessInstanceUpdateVariable|<ProcessInstanceId>|<VariableName>|<VariableValue>|<securitykey>", so for example "ProcessInstanceUpdateVariable|1702|My Variable|The new value|My Security key"