Vidya_CK
Canvas Initiate

Add a task action to a workflow definition using Power shell

Hello everyone,

 

I'm new to Nintex workflows and we have a requirement where we need to add a task action to workflow definition that's already created and have certain in progress workflows running. Also , is there a way to deploy/push the new actions to the workflow definition through powershell ?  I believe that the new task action will take effect with workflows that will be triggered new and not for existing in progress workflows.

 

Pleas let us know if any one has any idea . Thanks in advance !

0 Kudos
Reply
2 Replies
SimonMuntz
Nintex Employee
Nintex Employee

Re: Add a task action to a workflow definition using Power shell

Hi,
The only supported way to update a Nintex workflow is by using the Nintex workflow designer.
0 Kudos
Reply
philipplucas
Automation Master
Automation Master

Re: Add a task action to a workflow definition using Power shell

This could be possible using powershell. However, I recommend not to do it as this is an unsupported way and requires quite heave xml manipulation.

 

Using a powershell script you can either use NWAdmin tool or Nintex Webservice to export a xml workflow file and publish/deploy a workflow using this xml file. Bewteen export and publish you would have to use powershell to manipulate the xml file and add the task action as required. However, afaik there is no public documentation that explains where and how to add actions by editing the xml file. Therefore you would have to use and existing xml workflow file that includes a task action as a blueprint.

 

Nintex Webservice reference

NWAdmin tool reference

 

See this example provided by @vadim_tabakman on how to use NWadmin tool from powershell. And this example for using nintex webservice form powershell.

 


@Vidya_CK wrote:  I believe that the new task action will take effect with workflows that will be triggered new and not for existing in progress workflows.

That is correct.

Keep us informed about your progress.

0 Kudos
Reply