cancel
Showing results for 
Search instead for 
Did you mean: 

Actions do not repeat automatically if the start condition is met

raviaswani1982
Explorer
0 Kudos

Hi,

I am facing an issue in SSF. I have maintained a start condition to trigger a approval workflow on certain status (Pending for Approval) condition, when CRMD_ORDER is saved. The workflow gets executed successfully when the start condition is met and sends the order request to various approvers for approval process.

But in some case the order request is rejected by any approver the order is routed back to the initiator of the request with Rejected status and rejection reason. Now the initiator can again edit the same request change the status back to the "Pending for Approval" and save the request for sending it back for approval process via workflow.

This time the WF is not triggered even if the start condition is met. Workaround is to manually trigger the WF using the "Repeat Action"  this is using CRM WEB UI client. I don't want any manual activity for triggering the action repeatedly.

Can anyone help in this regard ?

Thanks !

Ravi Aswani

Accepted Solutions (0)

Answers (3)

Answers (3)

raviaswani1982
Explorer
0 Kudos

Thank you guys !

I did some changes in my custom workflow and was able to achieve the requirement. No changes in configuration needed !

Thanks again !

former_member191572
Contributor
0 Kudos

Hi,

In the action definition tab enable the check box- schedule automatically

raviaswani1982
Explorer
0 Kudos

it's checked already !

former_member191572
Contributor
0 Kudos

Hi,

Use this report-RSPPFPROCESS and  execute the job in background to automatically  execute the actions.

former_member204742
Participant
0 Kudos

Hi Ravi,

  In Action profile we can set the number of times an action can be triggered for an Condition.

you can configure the Limit.

Go to SPRO--> Action--> Action in Transaction -->Change Action and Condition --> Define Action Profile and Condition.

Open the Action Definition and go to Action Merging Tab. 

If you want to trigger n number of times then check the Allow any number of actions.

raviaswani1982
Explorer
0 Kudos

Hi Selvam,

Followed as per your post.

But the workflow is getting executed multiple time when i save the service request.  Which is not the requirement. The WF should only trigger once for every status "Pending for Approval".

When the request comes back after rejection to the initiator the status is "CFO Rejected" . The initiator can again change the status to "Pending for Approval" can save the request for approval process. This time again the WF should be started by the action defined. That is not happening !

The problem is the status of the action is "Processed"  but the repeat action can be performed only for "Unprocessed" actions.

Regards,

Ravi Aswani

former_member204742
Participant
0 Kudos

Hi Ravi,

Check the below Screenshot as modify.

raviaswani1982
Explorer
0 Kudos

Hi Selvam,

I am trying to trigger the WF based on condition. I have maintained following entry..

but first time itself the WF is executed twice.

But I am expecting the action to trigger once at a time. only when the status is changed back the action should be executed again.

Regards,

Ravi Aswani

Former Member
0 Kudos

HI Ravi,

Mark the check box ' Allow any number of Actions' and down below instead of '2' input only '1'. I think this should work.

Rgds

Hari

raviaswani1982
Explorer
0 Kudos

HI Hari,

When i mark the check box the i cannot set the max limit as it is defaulted to 999. and all the options are disabled !

Former Member
0 Kudos

Hi Ravi,

Keep the check box marked and let system input 999. What I would suggest to do is, under ' number of unprocessed actions' section, select the option "each partner and processing type". In my system I am getting 4 options may be version difference which is providing only 3 options in this section.

Please try and see.

Rgds

Hari

raviaswani1982
Explorer
0 Kudos

Hi Hari,

It's still not working. After i re-submit the request for approval process after rejection, the WF is getting triggered 999 times.

What are the 4 options that you are seeing. ?

Do i need to add any custom logic for executing the Action again ?

Regards,

Ravi Aswani

Former Member
0 Kudos

Hi Ravi,

Shall I assume that you have selected option of 'Each partner and processing type'. This time keep the selection as it is but remove the check box and maintain '1' in the max actions.

Let's see if it works.

Rgds

Hari

raviaswani1982
Explorer
0 Kudos

Yes option selected is 'Each partner and processing type'.

Max is 1 for successful actions.

but not working, The action is not executed again after re-submitting.

Regards,

Ravi Aswani