Workflow question | Community
Skip to main content
Level 2
October 16, 2015
Solved

Workflow question

  • October 16, 2015
  • 3 replies
  • 876 views

Warning: My AEM noob is about to hang out;

I have started my first rudimentary worflow.  I have two steps, Draft and Review.  Review has an Or Split where the assigned users can reject or activate the page.  The reject option is a GoTo Step, but it is blind to the rest of the workflow - I can't set it to go back to the Draft step.  Is this by design or am I just doing it wrong?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sham_HC

How are you setting it back to draft step?   Use the api something like [1] to take to the step you want to.

[1]

List<Route> routes=wfsession.getBackRoutes(item);

                 Route route=routes.get(WHAT_EVER_STEP);

                 wfsession.complete(item, route);

3 replies

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

How are you setting it back to draft step?   Use the api something like [1] to take to the step you want to.

[1]

List<Route> routes=wfsession.getBackRoutes(item);

                 Route route=routes.get(WHAT_EVER_STEP);

                 wfsession.complete(item, route);

Level 2
October 16, 2015

I'm trying to set it back to draft with a GoTo Step - I've added a screen shot of the WF that might help.

As I stated, Draft isn't available from within the Or Split.  I've seen the rout capability you noted, but in our environment I'm not sur how to impliment it since we are purely a .NET shop calling AEM with RESTful requests to get content in a JSON response.

Sham_HC
Level 10
October 16, 2015

In the workflow model i do not see any custom step to pass it back to draft step. Please include the same.