Author Topic: How to add a new attribute  (Read 1123 times)

0 Members and 1 Guest are viewing this topic.

Offline sandeepc27

  • Newbie
  • *
  • Posts: 1
How to add a new attribute
« on: March 23, 2015, 04:46:27 AM »
Hi all, how to add a new attribute and populate that attribute with a value?
I'm trying to add a new attribute to PR account generation workflow, pls help.

Offline Matthew Searle

  • Administrator
  • Hero Member
  • *****
  • Posts: 924
    • WorkflowFAQ
Re: How to add a new attribute
« Reply #1 on: March 23, 2015, 09:29:15 AM »
Hi,

You need to open the Workflow definition in Workflow Builder and then add the new attribute there (right click on Attributes, then new and add your definition).

Depending on how the Workflow process is launched, you can populate it in a range of ways. For example, if the process launches via the business event system, you can add the new attribute as a parameter to the event subscription and pass it through that way. Alternatively, you could modify the PL/SQL which starts the process and add it there. Finally, you could modify the Workflow process to include a new custom activity which sets the attribute to the correct version.

Of these, the first would be my preferred, but is not always possible. If it isn't, then I would customise the process and include a new activity to set the value for you.

HTH,

Matt
View my online profile on LinkedIN: http://www.linkedin.com/in/mattsearle