Skip to content

feat(ProgramCall): Add mode config option #363

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/ProgramCall.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class ProgramCall {
* Using ``off`` or ``fast`` continues executing the script. The Difference is that ``fast``
* will log a brief error report and ``off`` will not.
* @property {string} [func] - The target function of the service program.
* @property {string} [mode=opm|ile] - Determines the program call mode.
*/

/**
Expand All @@ -40,8 +41,9 @@ class ProgramCall {
this.xml = `<pgm name='${program}'`;
if (options.lib) this.xml += ` lib='${options.lib}'`;
if (options.func) this.xml += ` func='${options.func}'`;
if (options.mode) this.xml += ` mode='${options.mode}'`;
this.xml += ` error='${options.error || 'fast'}'>`;
}
}

/**
* @private
Expand Down