Skip to main content
Level 2
Oct 16, 2015 2:26 AM UTC
Solved

A Delete Page Workflow

I'm writing a workflow to delete a page. In our project user requires that Delete page action need approval. Initiator run the workflow on certain page (workflow's paylaod). Once approver approve, the page (i.e. paylaod) will be delete. 

Here is the problem: delete action is written in the end of workflow's ecma: pageManager["delete"](payloadresource, false);

Once this code is executed, the workflow status will change to "ABORTED" as it's payload is deleted. I expect workflow status will be COMPLETED. 

Do you have any suggestions?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
Oct 16, 2015 2:26 AM UTC

instead of ecma, try using deletenode process which is OOTB

1 reply

Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
Oct 16, 2015 2:26 AM UTC

instead of ecma, try using deletenode process which is OOTB

Translate