Creating a checkpoint in an Assign node

In an Assign node, you can create checkpoints within a single JavaScript as well as between different JavaScripts using checkpoint.createIpaCheckpoint(). The checkpoints can be made as long as the script is in a single Assign node. Only the Assign node may use this method. When necessary, this would make it easier to add logical checkpoints to a complicated and lengthy JavaScript. To utilize this method inside the script, the Assign node must be a checkpoint node.

If this approach is not used, the restart would begin from the Assign node's initial checkpoint. The flow developers have the option to create checkpoints inside the Assign node using this method if necessary.

Here is an example of a JavaScript expression with a checkpoint in an Assign node using checkpoint.createCheckpoint():
var i = 100
processing.info("before checkpoint")
checkpoint.createCheckpoint()
processing.info("after checkpoint")
var j = 200;

In this example, if this flow is restarted, it will begin at processing.info("after checkpoint").

For more information, see Infor Process Automation Configuration Guide for details.