Unable to Start Workflow with the help of Launchers using proper regualr expession | Community
Skip to main content
Jan 30, 2023 12:37 PM UTC
Solved

Unable to Start Workflow with the help of Launchers using proper regualr expession

 

Hi

I am trying to start a workflow with the help of launcher but only for the images inside abc-cropping folder.
As in the below String (3 sub folders) bold part is not static, it is differnt for differnt country and regions but abc-cropping is static and is present inside same level hierarchy so tyring with regular expression in the below mentiond path.

 

String - /content/dam/xyzsite/products/temporary/india/scm-mumbai/1_2345/abc-cropping

path - /content/dam/xyzsite/products/temporary(/.*)/abc-cropping

 

but it's not working, when i am workig trying with   /content/dam/xyzsite/products/temporary(/.*), workflow is getting triggered on all the assets inside any sub folder of temporary.

But we want to triger workflow only on the assets inside abc-cropping folder using launcher.

Please guide valid path(regular expression) for the above String.

 

Thanks.

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
DEBAL_DAS
DEBAL_DASAccepted solution
New Participant
Jan 31, 2023 1:34 PM UTC

Hi Debal,

 

The workflow code contains some project specific data.
Debal sir, it's working fine if we provide the exact path or the below path:
/content/dam/xyzsite/products/temporary(/.*) .
I don't understand why it's not working if we put anything extra after (/.*) in the path.

Thanks.


Sharing .content.xml associated with workflow launcher here -

<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" jcr:primaryType="cq:WorkflowLauncher" condition="" conditions="[jcr:content/jcr:mimeType==image/.*]" description="" disabledFeatures="[]" enabled="{Boolean}true" eventType="{Long}1" excludeList="" features="[]" glob="/content/dam/my-digital-assets(/.*/)abc-cropping(/.*/)renditions/original" nodetype="nt:file" runModes="author" workflow="/var/workflow/models/scheduled_activation"/>

Could you please just test it with some other workflow model and share your observation.

14 replies

DEBAL_DAS
New Participant
Jan 30, 2023 5:25 PM UTC

I have tested with workflow launcher configuration below and it's working for me-

 

I have used path: /content/dam/my-digital-assets(/.*/)abc-cropping(/.*/)renditions/original

 

Just for testing purpose, I have used Scheduled Page/Asset Activation workflow here.

 

Hope this will help.

Translate
Level 2
Jan 31, 2023 6:41 AM UTC

Hi Debal, I have tried the way you suggested but it's not working for me, please check the below attachment.

I have also tried by changing nodetype to  nt:file.
Thanks.

Translate
DEBAL_DAS
New Participant
Jan 31, 2023 7:54 AM UTC

Did you check instances, Archive, Failures console -

 

 

Translate
BrijeshYadav
Level 5
Jan 30, 2023 1:43 PM UTC

As Arun mentioned it should work with the given expression.

Also you can find many more example in OOT workflow launcher

 

Translate
Level 2
Jan 31, 2023 7:10 AM UTC

Hi Brijesh,

I tried the way you suggested, but it didn't worked, even tried with Nodetype as dam:Asset

Thanks.

 

Translate
arunpatidar
New Participant
Jan 30, 2023 1:09 PM UTC

Hi,

It should work, there are many examples OOTB launcher setup

/content/dam/xyzsite/products(/.*/)abc-cropping(/.*) 

Translate
Arun Patidar
Level 2
Jan 31, 2023 6:44 AM UTC

Hi Arun,
I have tried with the path :

/content/dam/xyzsite/products(/.*/)abc-cropping(/.*)

but it's not worked.

Thanks.



Translate