How to change status "Not Yet Requested" to "Approved"?

dhm
Kilo Explorer

Hey guys,

I have an application in SNC. I also created a service for to some business logic. This workflow worked fine in Fuji Patch 3 but after I upgraded my instance to Fuji Patch 5, it does not work any more when price of requested item equals 0. My logic is:

  • If price of item is 0, it'll go to "Approval Action"* activity and makes the status of workflow to "Approved" and do the other activities after this.
  • If price of item is greater than 0, it'll go to "Approval Group" activity. If Approver approves this request, it'll go to "Approval Action"* activity and makes the status of workflow to "Approved" and do the other activities after this. If Approver rejects this request, it'll go to "Approval Action"** activity and makes the status of workflow to "Rejected" and ends the workflow.

With requested item with price greater than 0, the workflow works fine. But if price is 0, the status of workflow always is Not Yet Requested and I don't how to change the status of workflow.

Do you have any ideas for this issue?

BR,

Duc

Note:

* Is Approval Action for Approved

** is Approval Action for Rejected

1 ACCEPTED SOLUTION

jfjones
Mega Contributor

Duc, we did some research as we were subject to the same result as you. Come to find out the "Service Catalog Request" workflow was turned off by one of our testers. Check in the properties of the Service Request Workflow and make sure it is set to "Run the Workflow" in the "If the condition matches" select box. Ours was set to "none" by our testing group.



Capture Serv Req.JPG


View solution in original post

14 REPLIES 14

Do you mean your workflow is not at all getting triggered when the price is equal to 0? or you mean that the if condition is not able to detect the price equal to 0?


If its your if activity which is not working then please try changing your if condition to check if the price is greater than 0 instead of checking for 0. If yes, generate group approval and if no then direct to the set values activity.


Hi Tanaji,


The problem here is workflow is not triggered. After I ordered an item, the status of Request is "Not Yet Requested". This request need an user which has approval role for approve this request. After approved, the workflow will be triggered. Is there any solution for make the status of workflow from "Not Yet Requested" to "Requested" automatically?



BR,


Duc


Hi Duc,



Ya you can do that using a BR. But to help/suggest something I should get a clear idea of the scenerio.


What you are trying is still not clear to me or I can say I am not getting your exact problem. If your workflow gets triggered after approval then what is the begin condition of your workflow and for what you are using it.


What I was thinking is you are triggering your workflow as soon as request is generated and then first thing you do is check the price. Depending on the price you decide whether to generate approvals or not.



Thanks,


Tanaji


jf_jones
Kilo Explorer

Duc, did your approval activity ever come back to life? I also had similar processing in four workflows. Worked like a charm for a couple of weeks. Even as late as this morning. then all of the sudden my requests are stuck in the "waiting for approval" stage. I had not touched the workflows at all.   John


jfjones
Mega Contributor

Duc, we did some research as we were subject to the same result as you. Come to find out the "Service Catalog Request" workflow was turned off by one of our testers. Check in the properties of the Service Request Workflow and make sure it is set to "Run the Workflow" in the "If the condition matches" select box. Ours was set to "none" by our testing group.



Capture Serv Req.JPG