on 01-28-2015 12:21 PM
Hi ,
Is they any problem to get export parameter by using Rule.Right now i am getting agent by using the Rule,In the rule i am calling z function module to know the approval's and know the final level also.If final level come i need to complete the workflow.
We can achieve this by using the method is they a problem to do same by using Rule.
I have check in SCN also but no clue for this solution.Can any one please suggest how to solve this.
Thanks,
Naresh.K
Hi,
Rules are use for agent determination. If you not only want agent determination but also extra data related to the agent then you have to create a method and a bg task to retrieve that (or possibly a virtual attribute depending on the scenario).
Kind regards, Rob Dielemans
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Naresh,
There is no Export option in Rule, however you can use the z function module in obj type, method in a task. and then export the value using swc_set_element container to the workflow. Update the container with the varaible with import/export as needed.
regards
Gokul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
"In the rule i am calling z function module to know the approval's and know the final level also"
Just create a step in the workflow that calls a task that calls a method that calls that FM.No need to use a rule.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
To comlete the workflow use Wait for event followed by Process Control step in your workflow. And raise event from Rule based on your conditions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't think you can "export" data from a rule. (Well, the rule result I perhaps can, but that's a different story). I might be wrong too, maybe there is some trick.
Anyhow, I would not include that kind of functionality in a rule. Rule is for finding agents, and that's all. You might want to include the whole agent & approval level finding logic in a separate background step. Just return the agents into a container element, and use that container element in the agent determination of your actual approval step. In addition of returning the agents, you can return the approval level from your background step. It should be straightforward and easy.
Regards,
Karri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Naresh,
I never tried Rule for multiple approvals.
Always Business object/Class is the best option for multi level approvals.
You need to pass the index of the current approval to rule and you have to get the final approval flag from Rule. The recommended option is business object / class.
Thanks,
Vijay.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.