Multiple conditions in workflow launcher

Avatar

Avatar

Jai1122

Avatar

Jai1122

Jai1122

24-03-2016

Hi Experts,

  We have a situation in which a launcher should invoke a particular workflow only if couple of conditions are satisfied. To be specific, the launcher will launch a workflow iff the node has couple of properties set to true.

  This means in the launcher configuration i need to verify weather it is true or not. But in the conditions textbox i am not sure how to use the && operator. 

  For example i tried with isDefault==true && isAdded==true but eventually it did not work. The launcher works fine with single condition.

 So please let me know if it is possible to use a multiple conditions in launcher config and if so then how?

 

Thanks,

Jai

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

edubey

Total Posts

1.5K

Likes

264

Correct Answer

392

Avatar

edubey

Total Posts

1.5K

Likes

264

Correct Answer

392
edubey

24-03-2016

There is one you way you can try to go for:

Have a third property name 'workflowCondition'

Value for this will final result of above two properties. 

If isDefault==true && isAdded==true 

workflowCondition = true

If isDefault==true && isAdded==false

workflowCondition = false

But you need to make sure you update third property everytime other 2 are updated, else it might create trouble for you.

Thanks

Answers (3)

Answers (3)

Avatar

Avatar

anjali_biddanda

Avatar

anjali_biddanda

anjali_biddanda

21-09-2020

Later versions of AEM allow multiple conditions to be added to list when you use the Launcher configuration in Touch UI.

But you could try the following, as this is how it is constructed when you add multiple conditions in touch ui:

(condition 1) && (condition 2)

Avatar

Avatar

anjali_biddanda

Avatar

anjali_biddanda

anjali_biddanda

21-09-2020

Later versions of AEM allow multiple conditions to be added to list when you use the Launcher configuration in Touch UI.

But you could try the following, as this is how it is constructed when you add multiple conditions in touch ui:

(condition 1) && (condition 2)

Avatar

Avatar

bsloki

MVP

Total Posts

1.9K

Likes

172

Correct Answer

544

Avatar

bsloki

MVP

Total Posts

1.9K

Likes

172

Correct Answer

544
bsloki
MVP

24-03-2016

Refer [1]

According to this article, only 1 condition is allowed per launcher. Please raise a support ticket and see if they have any work arounds for the same https://daycare.day.com/home/createaticket.html

[1] https://helpx.adobe.com/experience-manager/kb/ConditionsInWorkflowLauncher.html