You can set up a task to call a class method.

Usually, you use a custom class. You can only use static methods with no parameter or one parameter defined.
If you use a method with one parameter that accepts a record and the workflow is triggered by a:
  • Query trigger, you can pass the output record from the query as input to the method.
  • Staging table trigger, you can pass the staging table output record as input to the method.
If you use a method with no parameter or you don't pass a record for a method with a parameter, the method is called without input.


Standard procedure

1. Click Action and document management design.
2. On the Process flows tab, in the list, find and select the desired record.
3. In the list, click the link in the selected row.
4. On the Workflows tab, in the list, find and select the desired record.
5. Click Workflow designer.
6. Sub-task: Create task.
  6.1 In the Tasks section, click New.
  6.2 In the Task field, type a value.
 

Note: To put the tasks in the correct sequence, you can use a number in the task field. For example, if it is the fourth task in the workflow, enter 004.

  6.3 In the Task type field, select 'Action'.
  6.4 In the Action type field, select 'Call class method'.
  6.5 In the Description field, type a value.
  6.6 Click Save.
7. Sub-task: Set task properties.
  7.1 Click Class method action.
  7.2 In the Class name field, enter or select a value.
  7.3 In the Method name field, enter or select a value.
  7.4 If you use a method with one parameter that accepts a record and the workflow is triggered by a query trigger, you can pass the output record from the query as input to the method.
  Select Yes in the Pass query record field.
  7.5 If you use a method with one parameter that accepts a record and the workflow is triggered by a staging table trigger, you can pass the staging table output record as input to the me
  Select Yes in the Pass staging table record field.
  7.6 Click OK.
8. Close the page.
9. Close the page.
Related to Notes

Design workflow

 

Provide feedback