on 03-25-2015 6:29 AM
Hi Experts,
I am badly stuck in a scenario I am using "Multi Line Element" in a dialog activity step and Latest End Deadline is set
It sets a clock in SAP inbox when deadline missed this is fine.
But problem start when deadline missed.
When deadline missed as I am using modeled deadline I am using Multiline Elemnet.
It throws same No. of emails what is the No of all users to each agent of multiline agent.
For example if there are 3 agents in multiline it throws 3 mails to each agent.
I am using SO_NEW_DOCUMENT_SEND_API1 in a method of activity call after modeled deadline.
As some body suggested, should I enhance the standard program RSWWDHEX_INSERT where background job for miss deadline is coming.
Many thaks for help.
Thanks,
Saquib
I think you are getting confused with the use of "Multi Line " element in workflows. We use them for parallel processing . it makes sense to "Multi Line " element when the email text for each agent is different. If the email text is same then just create a background step with method that take the list of agents as inputs and sends the email to all of then in one go.
Fill the RECEIVERS with all 3 agents.
Regards
Sandy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sandy
You are right I am using Multiline Element (in first activity and same in activity after modeled deadline) for parallel processing but if I remove it from the activity from 2nd activity it throws all three mails to a single agent and zero to rest two agents.
It's happening because of the following Multiline index binding which is not possible without it.
&AUTHORIZERS[&_WF_PARFOREACH_INDEX&]&
Please advise something.
Thanks,
Saquib
Hello
I would suggest that do not use the concept of "Multiline element" at all for your current requirement. Remove all references of mutiline index in current approval task.
You can have a simple design in following way:
Regards
Sandy
I didn't mean subwf for the mail, but for the whole parallel process.
So if you currently have a task executing in parallel instances, put that task together with the deadline as you have it now into its own subworkflow. It's usually a good idea to put parallel processes into subworkflows if they do anything more than a single piece of work.
Slightly confused, and not sure if I understood this correctly: do you have three separate approvals or one approval for all agents?
If you have three approvals then parallel subworkflows are good.
If you have one approval then you don't need parallel processing at all, just follow Sandy's advice.
Hi Mike,
There are many approvers not fixed in No. so I am using Multiline Element in a single activity step and it's working fine deadline workitem goes to the SAP inbox.
Similar Multiline and same binding at modelled deadline (for sending the outlook mail notification at deadline reach to the same agents as previous activity) throw multiple mails.
Thank,
Saquib
Hello Saquib,
Thanks for the detailed explanation, all clear. This means you are sending multiple approvals and everyone has to approve before the workflow can move forwards.
This is exactly the setup I suggested to wrap into a subworkflow to keep the parallel instances separated. The mail step you have is getting it's input from the workflow container (Authorizers) in each case. So 3 deadlines for 3 agents send mails to everyone 3 times (9 in total).
Put the whole approval/reminder process with all the additional data you need into a subworkflow with a single element Authorizer. Then call it in parallel processing and bind each authorizer to it's own workflow, just as you are now doing for the task. You will need a step up front to evaluate the rule and get the list of agents. Then each workflow can only send one mail to it's own agent.
Regards,
Mike
Hello Saquib,
I suggest you should use "Block' option in your workflow for parallel processing and wrap the Approval plus deadline escalation. Block will be like a table loop.
I think the issue that you are facing now is that you have done the parallel processing Separately for approval and deadline mail sending steps; more like a Loop within loop. You can have the parallel processing at higher level in subworkflow (as suggested by Mike) or Block.
So as I told you earlier, clear all "mutiline" reference in approval and escalation step. Make your workflow working for one approver. Once that is working just Introduce the BLOCK to wrap up approval and deadline escalation mail sending step to make it working for "any" no of approvers. Refer blogs below
Regards
Sandy
Hello,
That depends how you have defined the recipient for that SO* fm. I assume your multiline elements are the agents. Make sure you only use the agent for that iteration and not all of them.
The above may sound obvious but without seeing what you've done, that's all I can offer.
regards
Rick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.