Expand my Community achievements bar.

SOLVED

How to run workflow on a particular application server ?

Avatar

Level 2

I have created workflow in App 1, if i check in XML it shows hostname ="App1" and scheduled it daily to run.

 

however when i check the task details "machine where executed" is sometimes App1 and sometimes App2.

 

how can i change this to always execute on App1?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @ash20 ,

Go to workflow property > execution tab and select your workflow servers in 'Default affinity'.

If your installation includes several workflow servers, use this field to choose the machine which the workflow will be executed on. 

For more details, Refer here

View solution in original post

4 Replies

Avatar

Correct answer by
Community Advisor

Hi @ash20 ,

Go to workflow property > execution tab and select your workflow servers in 'Default affinity'.

If your installation includes several workflow servers, use this field to choose the machine which the workflow will be executed on. 

For more details, Refer here

Avatar

Level 2

Dear @ParthaSarathy ,

 

I did not had any affinity so

 

1. I created App1 and App2 by entering in the 'Default affinity'.

 

2. I logged in both the app servers and added below in config-<instance>.xml file

     application server 1 - <wfserver autoStart="true" affinity="App1"/>

     application server 2 - <wfserver autoStart="true" affinity="App2"/>

 

3. nlserver config -reload 

 

but now if i run the workflow it is not starting (if i select affinity). 

Avatar

Level 1

@ParthaSarathy got it, there needs to be a comma in the end

 

     application server 1 - <wfserver autoStart="true" affinity="App1,"/>

     application server 2 - <wfserver autoStart="true" affinity="App2,"/>

Avatar

Community Advisor

@ash20 @ash201 , Yes, The comma following the name of the affinity is necessary for the execution of workflows for which no affinity is defined.

ParthaSarathy_0-1696864274445.png