on 07-10-2007 9:34 AM
Hi All,
My condition step is not working fine , Pls help me out.
I am designing WF for parking invoice (tcode- FV60, BO -FIPP),there I need to give following condition:
If Invoice Amount > 2500 USD then mail is sent to some particular approver otherwise some other approver.
I have declared one variable 'Amount' in WF container with refrence to table- INVFO and field - WRBTR.(this is a currency field.)
and in condition step in WF, I am giving a condition .i.e - 'Amount' > 2500
After activating WF and while testing it ,WF gives "status : Error "
I hv seen in WF log , Process has stopped in condition step.
Is there something missed or wrong in condition step ?
I doubt - if my way of declaring element 'Amount' in WF container is ok ?
Do I need to add this field as an attribute in the Bus Obj n then take it in condition editor.
Pls advice how to go about it ??
Best Rgds
Priya
how are you passing value to this new container field ? have you added this field in binding step? are you fetching this value or it is already there in BO?
Regards,
Shweta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shweta/ Addy,
This element is not there in BO, I hv defined this element 'Amount' in WF container.I have not used this element in binding as condition step doesn't provide us the option for binding . In my scenario:
1) Document is parked (FIPP - created), In FV60 invoice amount is filled.
2)condition : 'Amount' > 2500.
3)Condition true - go to approver1 (agent determination through Rule)
Condition false - go to approver2 (agent determination through Rule)
Pls let me know if binding is required in some step ?
or do I need to add 'amount' in attributes in BO ?
n In my graphical WF log, process has stopped in condition step.I think,we don't have any options to specify agent in the condition step.
Pls advice, n help me to proceed further ..
Best Regards
Priya
you have this amount in any of the attribute or you need to fetch? if you need to fetch based on the document, you needto know the logic and create amethod for that.
Then before this condition step create a step add the task having that mehod in this step, get amount from method and pass it to you variable (container) through binding.
Then use this condition step.
Hi Priya,
Your approach is proper,
but unless the value isnt in your 'Amount' WF container, you cant check it in your condition step.
So what I suggest is,
just before your condition step, can you add an Activity step, where you call your own BOR method.
which means you need to create a BOR method inorder to fetch your Amount.
In your method using SWC_SET_ELEMENT pass the values to your task container, then in your task bind this value to your 'Amount' WF container,
so now you have the value in the Amount' WF container, use this in your condition step.
Hope it helps.
Aditya
Hi Shweta,
As suggested by u :
1) I hv created new step , associated it with new task n new zmethod (method fetches the invoice amount ) and put this step before condition step.
2)Have done the proper binding : method -
> task and then task ---> WF .
3)Now I m using WF container element in condition step as : 'Amount' > 2500.
but the problem is my WF is getting stopped at condition step again ?
Pls suggest wat could be missing and how to go about it ..
Many Thanks
Best Regards
Priya
Hi Priya,
Your declaration of the variable is right,
check whether your container stores the value before it reaches the condition step ?
could you check the Graphical WF log and see where your WF has reached.
Now since WF stopped at the condition step, does it show "No Agent", if that is so then it is not able to get the agent.
Aditya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.