Custom Activity - Getting Output in Post Processing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2019 01:22 PM
So I have a custom activity where we are just pointing to a .ps1 file on the mid server. It runs and here are the results of it running in the workflow:
I have result, output, and errorMessage, which are my outputs on this screen:
However, Post Processing, I cannot get it to set activity.result = "success" no matter what script I use. I am using the simplest of scripts now where if activityOutput.output contains anything (I even tried doesn't contain anything) make it success and it's still going down the failure path. It's almost like activityOutput.output doesn't exist or something. I am also unable to use gs.log in the post processing as well.
What am I missing here?
Please mark this response as correct and/or helpful if it assisted you with your question.
Steven
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2019 06:54 AM
Your output will be on `executionResult.output`, since `executionResult` is an object representing the results of the activity execution. `activityOutput` is an object representing what will be returned/available to other activities in the workflow, and needs to be set either through parsing rules or in the post processing script.