cancel
Showing results for 
Search instead for 
Did you mean: 

how to restart the workflow

Former Member
0 Kudos

Hi friends,

I have a requirement where in i am checking inside the workflow whehther the rfc destination is maintianed using a condition step and if it fails i have to exit processing completely and send a workitem to an administrator informing them of the issue and <b>Allow the possibility for the workflow to be restarted again once the table has been updated.</b>How to do allow the possibility of restarting the workflow.

rgds,

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You have two options :

1 . Simply start another workflow using events just after update statement of table.

2. The workflow can be started thorugh change docs of the table you are updating. Though it would be little more sophistication than what was asked for .Check Tcodes SCDO and SWEC for this. But is the workflow the only way to update the table ? if yes then it should be pretty simple to achive. As soon as the table gets updated thru workflow (By Admin's workitem) your workflow will start.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

In my view do not break the flow send work item to administrator and let him maintian the table and in work item give him the transaction to maintain the entry and then give one button to continue the process...

Atul

Former Member
0 Kudos

Hi Atul/Anuj,

According to my requirements one the rfc destination is not found i have to complete the workflow.So I am planning to set the workflow status to error using the wapi function module, so that the wf admin can restart in SWPR.

Pls let me know will there be any prb in this..

Rgds

Former Member
0 Kudos

Its not a good practise to force a Wflow into error. You just send a mail to the Wflow adminstrator and terminate the Wflow by using a process control step. In the mail you provide all the necessary key fields so that the wflow admin can start a new wflow instance from SWUS or SWUE.

Thanks

Arghadip

Former Member
0 Kudos

As Arghadip says you should not put wf in error and then restart... I would suggest you have the WF Admin step as the last step of the branch and there u write a small method which will simply present him a screen ( can be done via submit report ) . Should not a big task I belive and will be a cleaner way to do it..

Regards,

Anuj Sethi

Former Member
0 Kudos

Hi,

I aggree with Arghadip/Anju.....

But i still wonder y u have to terminate the WF in first, you are the consultant and you should define what is right. anyway enjoy.

Atul