com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links' is unknown.

Script Task

The .bar file relevant for this sample is OrderDeliveryProcess.bar found in the <BPS-HOME>/repository/samples/bpmn directory.

You must add the .jar file as instructed in Script Tasks for BPMN and restart the server to try this sample.

Flow of the sample

In this sample scenario,

  1. The customer user sends an order request with details such as order name and summary.
  2. This data is filtered from the script task.
  3. If the summary field contains ‘local’, the order request will be sent to the 'local delivery' task.
  4. Finally, the customer user will get a notified task that his order was sent to delivery.

The following code block is the groovy script task used in this sample.

<script>
           def searchString  = 'local'
           def replacement = 'This is a local request’
           def filteredSummary =   orderSummary.replaceAll(searchString, replacement)
           execution.setVariable('orderSummary', filteredSummary)
</script>

orderSummary is the variable that contains the summary value entered by the user in the 'issue order request' task.

Running the sample

  1. Login to the BPMN explorer as a customer using the customer/customer credentials.
  2. Select the PROCESSES tab to view the task in the task list.
  3. Click the Start button and fill in the form that appears with the order details.
  4. A task notification will be displayed under the MY TASKS tab, showing which delivery option was taken. 
com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.