/
Declaration Snippet*
Declaration Snippet*
Following code needs to be added into suitable part of prolog, ideally to variables declaration part. The snippet defines variables that are used to communicate results of the process to its caller.
Prerequisites:
You should make sure you are using Apliqo template empty process as some of variables defined there are used in the messaging solution as well.
Prolog:
sProcLogParams
- either manually set or set by Apliqo templatecUserName = TM1User(); If( DIMIX( '}Clients', cUserName ) = 0 ); cUserName = 'Admin'; EndIf;
cThisProcName = GetProcessName();
Prolog:
### Messaging Global Variables
StringGlobalVariable('sProcessReturnCode');
NumericGlobalVariable('nProcessReturnCode');
nProcessReturnCode= 0;
cMsgErrorLevel = 'ERROR';
cMsgErrorContent = 'User:%cUserName% Process:%cThisProcName% ErrorMsg:%sMessage%';
# Uncomment for thread enabled processes
#cMsgErrorContent = 'User:%cUserName% Process:%cThisProcName% (ThreadID: %pThreadID%) ErrorMsg:%sMessage%';
nErrors = 0;
sMessage = '';
cCubMsg = '}APQ Process Response Message';
sMultiMsg = '';
nMultiMsgJSON = 0;
sDetailMsg = '';
nSubProcessNumber = 0;
, multiple selections available,
Related content
Parameter Value Error Snippet
Parameter Value Error Snippet
Read with this
Reporting and analysis
Reporting and analysis
More like this
2.1 Planning Versions
2.1 Planning Versions
More like this
Training: Client Security
Training: Client Security
More like this
Customising the Roundtrip
Customising the Roundtrip
More like this
Training: Planning Workflow
Training: Planning Workflow
More like this