Skip to Content

Status management in WF



there is a WF which triggers for ECM

Flow is as follows:

Step-1 reached Approve or Reject

User Rejected, background task makes the ECM to Status=70 (which means rejected)

Step-1 again arrives, now user Approves.

Background task completes the step where FM "Status_change_Extern" is run and finally WF completes.

But when we check the ECM in CC03, it still shows Status=70, ideally it should have been 80.

So I feel is it to do with Status Management, which is not updating the ECM to 80.

Aditya V

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Sep 11, 2014 at 02:47 PM

    Hi Aditya

    Does the FM gives any exception? There are three of them there. Are these mapped to any WF exception?



    Message was edited by: Modak Gupta ....................... also check if COMMIT WORK is getting executed after the FM call in the case of approval.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 12, 2014 at 01:27 AM

    Is this a standard workflow or a standard with certain modifications? Or is this a custom made workflow?

    Well, in any case, I don't necessarily see this as a workflow problem. If I understand you correctly, the function Status_change_Extern does not update the status field in the database. If you run the function outside of workflow, does it then update the status field to 80?. If the function does not update the status, then you know what to do: debug, search OSS notes, etc. If the function works but not when called from workflow, then follow Modak's guidance: exceptions, commit work, etc.

    One additional (and perhaps self-evident) comment: Are you sure that you pass the correct parameters to the function (from the workflow). I don't know this function, but do you for example give the right status as a parameter, or how does it work?



    Add comment
    10|10000 characters needed characters exceeded