Skip to Content
author's profile photo Former Member
Former Member

Help in setting counter variables in workflow

hi experts,

How to set flags,or variables in a workflow.

Example i have 2 levels of approvals.1)Manager 2)HR

Now if the first one is approved,i am planning to set a counter variable(i=1) in the agent picking logic and in the workflow,so that based on the variable agent is picked up.

Is this an ideal approch.

I have conditions like cost center,alternate cost center in both cases i have different levels of apprvals.

So can i set two flags for each case.

Is that approch correct?

i am new to workflow,pleas e help

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on May 21, 2013 at 02:55 PM

    Hi,

    "How to set flags,or variables in a workflow"

    - Using Container operation

    "Example i have 2 levels of approvals.1)Manager 2)HR

    Now if the first one is approved,i am planning to set a counter variable(i=1) in the agent picking logic and in the workflow,so that based on the variable agent is picked up.

    Is this an ideal approch."

    - Yes, you can use this logic

    "

    I have conditions like cost center,alternate cost center in both cases i have different levels of apprvals.

    So can i set two flags for each case."

    - Take a flag Total_No_of___approval. Take loop Until upto Total_no_of_approval. Increment Approval level in each loop using another variable.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 22, 2013 at 05:33 AM

    Hi Abap,

    Yes you can use this.

    But based on variable u need to select second approver means you have to create Ztable, so that you can pick second agent(If you have more than 10 options to selevct second approver).

    If below 5 option for second approver, just create one method in your BO.Under this based on the counter varaible you can set AGENT2,then pass this variable to workflow then use inside the user decision.

    Warm Regards,

    Ragav

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.