cancel
Showing results for 
Search instead for 
Did you mean: 

how to delete workflow, when transaction to be approve is deleted?

Former Member
0 Kudos

Hi expert,

how to delete workflow from UWL, when employee delete the transaction?

I mean when employee submit transaction for approval but then he deleted it before employer approve,

wasn't approval task should be deleted to from UWL?

how to achieve this?

thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

suresh_subramanian2
Active Contributor
0 Kudos

Hello !

Hope you mean to state that an employee have submitted a request and later he/she can withdraw the request before approver could approve.

Your question is how to make the work item from approver's UWL to disappear when ever an employee withdraws his/her request.

So, the solution can be attained by following as below mentioned :

Create a fork step in workflow with 2 parallel branches and one necessary branch.

In one branch, maintain the logic required for approval.In the other branch, create a wait for event step with event "CHANGED" or as appropriate.

Regards,

S.Suresh.

Former Member
0 Kudos

Yes you are right.

my question is "how to make the work item from approver's UWL to disappear when ever an employee withdraws his/her request."

I already try to create wait for event step with event "CHANGED" or as appropriate.

but it got error when the workflow started.

I used ZBus.. is there any object or method that maybe missing to be used as "wait" event?

thanks

suresh_subramanian2
Active Contributor
0 Kudos

Hello !

What is the error message appeared ? What does the workflow log states ?

Is the Zbusiness object is delegated business object ?

If it is delegated one, what is the name of its parent business object type ?

Regards,

S.Suresh.

Former Member
0 Kudos

Hi..

the error is "Error within method CL_SWF_RUN_WIM_EVENT->_CREATE_WORKITEM_CONTAINER" - Error when creating a component of type 'Wait Step'

ZBus that I used is not a delegate bus object.

I am creating zbus for benefit administration claim (hrclm0001)

how to solve it?

thanks

Former Member
0 Kudos

Hi,

now I got no error.

but the workflow still not deleted.

how to solve this?

thanks

former_member183917
Active Contributor
0 Kudos

Hi- You need to check what all the events get triggered, when employee deletes the submitted transaction before approved by approver, then you can re-design the WF as mentioned already using FORK

Vinoth

nabheetscn
Active Contributor
0 Kudos

Check in SWEL if theevent is raised if yes chevk if it found any receiver..?

Nabheet

Former Member
0 Kudos

OK. I think I need to redesign the workflow,

create wait for event "deleted" and then logically deleted the workflow.

I'm still working for that workflow.