Skip to Content
avatar image
Former Member

SUP workflows - parameter mapping needs to be done dynamically

Hi Experts,

I have a requirement where I need to map parameters depending on the menu options selected by the user.

there are three menu options - create, check and send and each of them needs different parameter mappings. for e.g. if user selects create then 'create' should be mapped to corresponding parameter and similarly for others

I thought of changing (adding/removing) keys in related functions in Workflow.js, but not sure if it 'll work or if its a good practice.

Any pointers are appreciated.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Sep 28, 2011 at 06:01 PM

    Your best bet is likely to use the same parameter mappings and change the key values dynamically at runtime in the customBeforeMenuitemClick. You certainly can change the code in Workflow.js, but its not recommended, as it'll be overwritten every time you regenerate (unless you turn the Generate checkbox off).

    Add comment
    10|10000 characters needed characters exceeded