Place a Custom activity inside a For Each Document activity to process each document separately — the Custom activity then sees only one document at a time.
Set up a Custom activity
1
Add the activity
In the Process skill designer, add a Custom activity block to the document processing workflow.
2
Open activity settings
In the Actions pane, click Edit Activity.
3
Choose available files
On the Available Files tab, select the formats for text, document fields, and images to send to the external system. You must select at least one format for each type.
4
Write the script
On the Activity Script tab, configure your script and click Save.
Verify the Custom activity
1
Publish the skill
Click the Publish tab, enter a name, description, and description of changes, and then click Publish Skill.
2
Run the workflow
Process documents through the workflow that uses the Custom activity.
3
Check results in Skill Monitor
Review the skill’s results in Skill Monitor. If the script errored, the transaction is interrupted and the error appears in the Transaction Event Log. If you used
LogMessage to add custom log entries, they also appear in the Transaction Event Log.