VERIFIED SOLUTION i

Automate BPA - cannot find return-code from the process agent that can be used within the workflow

Issue

Automate BPA - cannot find return-code from the process agent that can be used within the workflow

Cause

Return code is not readily available. 

Resolution

UPDATED: October 9, 2017
The following fields are populated when a command is executed at the process agent:
 
%AMProcess.AgentID%
%AMProcess.AgentName%
%AMProcess.CommandLine%
%AMProcess.ID%
%AMProcess.Output%
%AMProcess.Name%
%AMProcess.Result%
 
So the result will look like:
b2b4417c-c847-4b76-89f1-ef0702e900de
bpa9
notepad.exe
{70375534-db3f-4d04-a36e-4dff65d41c9b}
True
notepad
1
 
A result code of 1 means successful and 2 means failure. This can be used as a return code.
Environment Details
Product Feature: Workflow