Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Snippets marked with * are mandatory and should be used in messaging enabled processes.

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.

Note: 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. These are following:

  • sProcLogParams

  • cUserName

  • cThisProcName

Code Block
### 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;

License Test Snippet*

This snippet should be added to a first line of code after declarations to check license validity.

...