Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new

Learn more

View all

Sign in to view all badges

Is it possible to create a workflow that runs a curl command when a page gets published/un-published?

Level 1
Level 1

Is it possible to create a workflow that gets executed when a page gets published/unpublished to run a curl command like: curl <published_page_url>

workflow workflow activity
1 Reply
Community Advisor
Community Advisor

yes, it is possible,

you can write a service or you can include steps as follow


 String[] command = { "curl", "-X", "GET", "<<URI or something here>>" };
 ProcessBuilder process = new ProcessBuilder(command);
Process executeProcess;
executeProcess = process.start();