Parameter mapping in Dynamic approval process

Hi experts,
We have a webdynpro application where the user inputs certain data.
Then from this application we are triggering a GP process and also passing parameters to the GP process.
In GP my Approval callable object is webdynpro(GP interface) Co.
In the execute method, I am reading the input parameters
CurrentLevel=(executionContext.getInputStructure().getAttributeAsInt("I_CurrentLevel"))+ 1;
totalLevel=(executionContext.getInputStructure().getAttributeAsInt("I_TotalLevel"));
VendorNo=executionContext.getInputStructure().getAttributeAsString("I_VendorNo");
Now in complete method I am writing these values to the output parameters.
output.setAttributeValue("O_VendorNo",contextElement.getVendorNo());   
output.setAttributeValue("O_TotalLevel",contextElement.getTotalLevel());output.setAttributeValue("O_CurrentLevel",contextElement.getCurrentLevel());
In the Gp I have a process under which I have a postcondition loop ,it has a loop decision action and  Business logic Co (with two parameters current level and total level).
And next I have a sequential block with the approver Co.
I have certain doubt regarding the parameter mappings.
For the first time the input to the Approver Co is passed from my application (triggering and also passing parameters).
So we are able to see the input parameters on the GP screen.
When the first approver approves it, it checks the loop condition, but my problem is Always the input to the approver screen is same.
After first approval the output of it should become the input for the second approval.
At which level should I group the parameters in GP because i tried mapping them at process level and also at the postcondition block level .
Thanks,
Swetha

Posted another thread on the same issue

Similar Messages

  • Multilevel dynamic approval process using precondition loop block

    HI,
    I am trying to create a multivel dynamic approval process using a precondition loop block. The structure of my process is,
    Process->1)Sequential Block containing requestor action->processor of requestor action is initiator
                2)Precondition Loop Block containing
                        i)Loop Decision action containing a business logic callable object
                        ii)Loop Body Block containing Approver action-processor of approver action is filled from context parameter
    The loop decision action implements the logic for loop decision. Can anybody help me by suggesting the proper target of each of these actions, and the processor for loop decision action?
    Whenever I am initiating the process, the requestor action is getting executed,  On completion of this action I am getting a message "No activity is currently selected", that is, it is not entering the precondition loop block.
    Please guide me with the proper process flow of this and how to adjust the roles and parameters
    Thanks,
    Swaralipi

    Posted another thread on the same issue

  • Invoce. N-step dynamic approval process

    Hello,
    I have a question.
    According documentation we have BADI ONLY for SC workflow
    and PO workflow.(BBP_WFL_APPROV_BADI)
    I need  N-step dynamic approval process  for Invoice.
    The question is : do i need to develop my own workflow or is there other functionality or BADI which i can use for INVOICE?
    Thank you.
    Tania

    Hi Hari,
    The total value of the shopping cart changes because Manager 1 deletes an item from the shopping cart. So the new value of the shopping cart is 10.000,- euro. In this example all managers must approve up to and including the first one who has an limit higher than the shopping cart value.
    Regards,
    Martin

  • Dynamic approval with loop

    Hello All,
    I am developing a dynamic approval process and here is my requirement.
    We are maintaining the agents in the custom table.I am using multiline element to send the user decision tasks to all users in the table. if user approves then workflow continues..if user rejects then i need to send the user decision task to all agents in the table or just to the rejected user for reapproval..
    for this..
    what i have done so far is..
    1. i have called a system method to pull the agents from custom table.
    2. i have used the multiline element to the user decision step..and work items are going out for approvals to all agents in the table under this task which is parallel.
    3.if approved..continue workflow
    My question is  if user 1 rejects the item can i do another user decision step which is sending the approval to all or just to the rejected user in the rejection path?
    again if user2 rejects i need to follow the same..as it is dynamic am not sure how to achieve this flow..
    and it continues until all approved..am not sure how to pursue this..please help..
    Thanks in advance..

    Dear Suresh,
    This means if rejected-- need to send it to all or just to the rejected user depending upon initiator decision..i believe we can add another option in second user decison as to send only to rejected user along with resubmit..i will try this option..
    Yes you are right.. Provide 3 buttons to initiator like 1)resubmit to all 2) resubmit to rejector 3) exit
    Have a multiline container element with name say approver. If initiator clicks the resubmit to all button in user decision then use the multiline container approver (which has all approvers populated by you). If he selects resubmit to rejector the pass the agent (who rejected the workitem in previous step) via binding for that step.
    Remaining logic remains the same as mentioned by Sanju.
    Regards,
    Bharath

  • Request Approval Process exception in OIM 11g

    Hi,
    We have upgraded oim 9.1 to oim 11.1.1.5 and we did not have any request approvals in oim 9.1.
    Now we are using oim 11g to develop request approval process. We have tried to raise a request for "Provisioning Resource" - Application Access and "Assign Role" - Business Role Request in OIM 11g environment. Both the Requests are failing with the same exception as below,
    Error:
    IAM-2050014:An error occurred while initiating approvals for request oracle.iam.platform.workflowservice.exception.IAMWorkflowException: Tasklist mapping failed for workflowdefinition: default/DefaultRequestApproval!1.0 due to javax.naming.NamingException: String index out of range: -1. The corresponding error message is {1}.
    Any idea on the above error?
    Thanks!!

    you can follow these videos to see if you can get a basic manager approval working for a self request resource.
    http://www.youtube.com/watch?v=KCA_cxKsi_o&feature=channel_video_title

  • Problems with Parameter Mapping

    Hi All,
    I have problems with parameter-mapping. For me its a black box, sometimes it works sometimes not.
    Lots of times my mappings doesnt work, and I dont know the reason.
    For example: I want to map my Execution-CO to the Display-CO. For that I map the in the affected Action.
    But it doesnt work, although I do have the same Context Structures, because its the same CO. The technical Name is also the same.
    What could it be?
    Thanks for answering me
    Bye Steve

    Hi Andre,
    sorry for my late answer, but I'm writing my diploma thesis and wasnt at work since wednesday and so I dont have a access to our GP-System.
    Hope I understood you right.
    The Use Case of parameter mapping is that Users of further steps has the possibility to see the Input of previous steps.
    When I dont map the parameter inside one action, it isnt possible. I tried it out with the SAP example "Time-off-process". I took the CO "Create Request" and add it in one Action (as Display &  Execution). When I understand you right mapping inside an action is not necessary, to see the Inputs from further Actions --> But this way I cannot see the Inputs.  
    The mapping of my application works before I changed it.
    I know never touch a running system, but It was necessary, we need a new Input and Output Parameter.
    Cause I have 20 parameter the mapping was very time-consuming, to map every single parameter. I read a method to reduce the time: Adding a structure requires only mapping of the two structures. But now the Mapping doesnt work.
    Hope you can help me
    Bye Steve

  • Approval process in OIM 11g

    Hi All,
    I am newbie to OIM. I have a requirement with 2 levels of approvals in OIM 11g.
    *1st level:* In the first level the Approver will be selected by the user(self service) from the drop down present in the custom UI.
    *2nd level:* For the 2nd level Approval the 1st level appover should have the ability to select the next approver from a drop down list. The 2nd level approvers belong to a particular group.
    All the approvers should be stored in a lookup table in OIM. When a user raises a request the custom application should get the values from the lookup table and populate the drop down for 1st level approvers. 2nd level approvers sholud be populated in the drop down during the 1st level approval process.
    can any one suggest me the steps to achieve this.
    Thanks

    Task assignment in SOA are done via human task assignment i.e. the .task component in BPEL. Now this task assignment can use various features to compute whom to assign the task to.
    1. Static: This is when you specify the group name or the user name directly into the task.
    2. Dynamic : This is when you assign the approver to be a variable and in your SOA workflow before task assignment you assign value to this variable.
    3. External Routing: This is when you assign a java code inside the .task to do all the assignment and escalations. When using this you can have complex implementations done.
    What I meant by looping is that you will need to call this .task two times, first time of the first approver and second time (if the first approves it) for the second approver. Thus when you are inside the loop you need to get the appropriate value from the payload (payload is sent from OIM to SOA when you submit/approve the request) and set it into the appropriate variable so that .task reads that variable and assigns the task to that person.
    I would recommend going through the BPEL developers guide for better understanding. Start with a simple process and see how it behaves when it runs and then pile on top of it.
    -Bikash

  • Report:  Approval Process Timing

    Hi,
    1)  I need a report showing me the average time it takes for each approver to approve the POs.  Do you know how I can code this please?
    2)  Also, I would like a report which shows me a list of all PO Approval Processes related to an Approver specified within a parameter.
    Thanks,
    vankri

    By average time I mean for example:
    Purchase Order 1:
    Approver 1 approves on (01/11/2009)
    Approver 2 approves on (03/11/2009)
    Approver 3 approves on (04/11/2009)
    Purchase Order 2:
    Approver 1 approves on (17/11/2009)
    Approver 2 approves on (21/11/2009)
    Approver 3 approves on (27/11/2009)
    The dates are dates of approval.
    Average time for approver 3 is 3.5 days ((1+6)/2)
    The average time it takes for a user to approve after the previous approver has approved from his part.
    Any ideas pls?
    Thanks,
    vankri

  • OIM - Approval process

    Hi All
    I have OIM integrated with application 1. Application 1 has many responsibilities which are to be maintained by OIM by 1 level approval process. This means the end user can log into OIM admin console and request for more responsibilities. I have a table for Resource object and another table for Responsibilities similar to AD Resource Object and its child table for AD groups.
    Problem is that every responsibility has a separate owner and if a user raises a request for responsibilityX, it should go to the owner of the responsibility. How should I go about it..
    Please help !!
    Thanks

    Thanks Kevin
    This is really helpful. I guess this would probably work in case when the number of responsibilities and user groups are limited. But in my case I have almost 1500 responsibilities and having a user group corresponding to these responsibilties would not be an easy task.
    I take your suggestion of creating a lookup for the mapping of responsibility and its corresponding owner. To move further, shall I go ahead and use API's to handle the object form and assign the task based on this lookup. Can you please suggest if this will be a good approach and provide some basic startup.
    **** Another thing which I am not able to understand is - When I provision a user using direct provisioning, these reponsibilities are attached to the process form as child table. How should I go ahead with creating a object form for the responsibilities.
    Currently, when an end user logs into admin console, he can only request for RO provisioning with no details or responsibilities. (No object form is attached to RO).
    This is similar to Group assignment in Active Directory, but in that case I wrote a separate piece of code that was adding the user directly to the AD group.
    Thanks

  • Parameter Mapping with RFC Callable Object not working

    Hi Folks
    Scenario
    I have a process scenario like this
    Interactive Form Callable Object A -triggers> Process [Interactive Form Callble Object B -> Interactive Form Callble Object C -> RFC Callable Object ]
    All the forms A, B, C use same form template, different sections of it lets say i, j and k are filled by different guys.
    Now my parameter mappings are as follows -
    a) Page level meeting between B & C called P Map.
    b) Process parameter mapping with Form A and appropriate section of P Map lets say section i
    c) fields of Form C are mapped to RFC callable object fields
    Problem
    The data filled in Form A [section i] disappears when I open and see the Form B.
    If I remove the mappings of fields of Form C with RFC callable objec fields, I am able to see it.
    Has anyone faced it before!

    Hi,
    This is a known issue on SP10 and it will be fixed in the next patch for SP10.
    Hope this helps!
    Best regards,
    David

  • Dynamic parallel processing using a multiline container element

    Hi All ,
      I just wanted to how things work when we use "Dynamic parallel processing" for a decision step . I came across a situation wherein a Rule gets the approving user(s) and the work item should be sent to all those users . After getting an approval from all the users , the workflow should proceed or else it should terminate .
       I was just wondering whether "Dynamic parallel processing" will do this job or not . I had also thought of using forks but as the number of approvers are  decided at runtime , i dont think it is possible .
       Any inputs ?
      Edit : We are working on CRM 5.0
    Thanks ,
    Shounak M.
    Message was edited by: Shounak  M

    Hi Shounak,
    Just do as Mike says:
    use the multiline element for a subflow.
    The subflow consists of your user decision, if someone rejects it, remember it (could be done by updating a small table using a method, or use an event, or what mike suggested, updating appending a table )
    In the top flow, after the multiline element step determine if someone rejected it (wait for event, or reading the table).
    Kind regards, Rob Dielemans
    Message was edited by: Rob Dielemans

  • Sharepoint 2010 two stage dynamic approval

    I have an infopath form that needs to be first routed to a selected reviewer and then that reviewer selects approvers from a picklist. This looks like the Staged OOTB approval process, but how do I dynamically change the approvers in the 2nd stage. The WF
    needs to wait for the reviewer to select reviewer (in parallel). I'm looking for a no code solution if possible.

    Hi,
    In the infopath form add a field and from SharePoint Designer creates workflow and use this field for directing to approver
    the values for this field can be retrieved from another list that contains unique values for the users and their data
    and from workflow you can direct the next approval based on selection in the form
    in the infopath form you can control to show hide the field based on certain values and you can change that from the designer workflow.
    Kind Regards, John Naguib Technical Consultant/Architect MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation

  • Using WF WS14000133 and WS14500015 in same approval process

    Dear WF-Experts,
    we want to use the WF WS14000133 and WS14500015 in same approval process in BAdi "Determination of Approver for n-Step Dynamic Approval Workflow".
    For Example:
    - Shopping cart with 3 items and total value 1000,. EUR
    - first approval step financial for complete shopping cart cause total value
    - second approval step for item 1 and 3 cause cost center
    - not seperate approval for position 2
    - third and final approval step for complete shopping cart cause total value
    Thank you for your support
    Best regards
    Heinz-Georg

    For one approval process you can use only one workflow. But as you want some steps for the complete shopping cart and others on line item, use the line item approval. If you want to do the approval on "header" level just make sure all the items get the same approval object guid. That way all the items are assigned to the same approver and in that way you have a "header" approval.
    I used this for a similar requirement and it works fine.
    Regards,
    Martin

  • Extra Information in HRSS approval process

    Dear Members
    We are using HRSS for approvals and approvals have been managed through Approval Management Engine. All is working fine.
    Now we want to include extra information (EIT) in our approval process. Can u please advise me which attribute to be used for this purpose in AME and which dynamic query to be used for getting necessay information or which work flow process will work for it.
    Please help me.
    Regards

    In which attribute i need to define. Please guide me. If any reference documents is available, pls give any idea.
    Regards

  • Dynamic parallel processing of the same object using asynchronous method

    Hi,
    Please can anyone help me?
    I have to send the same DMS document to several agents for parallel processing. The number of agents is not known until runtime. Each of them should process the document and at least change the status of it. In next step I check if he has changed it.
    I use dynamic parallel processing of subworkflows. Key task of this subworkflow uses standard method of object DRAW - DOCUMENT.EDIT  (standard transaction CV02N) which is asynchronous. The task is finished by event DOCUMENT.CHANGED. 
    During the parallel processing the appropriate number of workitems is generated. However, when the agent who processes the document as first completes his workitem the event DOCUMENT.CHANGED is generated and all parallel workitems are completed, even those of other agents that were not processed yet.
    Any help would be appreciated.
    Thanks.
    Eva Vahalova

    Hi all,
    The process is used to approve incoming invoices. Each scanned invoice is attached to a DMS document and than sent to one or several agents in parallel. People from several departments can approve the same invoice for instance energy or mobile phone costs. We have no HR module fully implemented. Each agent may write some remarks and has to sets the document status to either approved or rejected. This status is temporary therefore the others see the original status for approving.
    The process of incoming invoices was implemented by SAP consultants in 2003 on 4.6B and now runs on our 4.7 system.  Now new company was established running on a new SAP system ECC 6.0 and our accountant department and some agents will deal with invoices in both systems. Therefore, the process should appear the same or at least very similar. The majority of the old process was realized by programming while I would like to use workflow features that are available now and reduce the programming part.
    As I see, I will have to choose one of the solutions that Arghadip suggested.
    I wonder if there is a possibility to use asynchronous method and control the end of each work item by means of u201CComplete Work Itemu201D or u201CComplete executionu201D Conditions. I have never used them and I do not know how they work and what condition to use. Maybe program exit might be used as well. While controlling the agents I think I will have to do some programming anyway because the work item can be finished by a substitute too.
    Thanks for your help.
    Eva

Maybe you are looking for