Error message that workflow key that was supplied does not exist. IZUWF5001W: The workflow key "workflowkey" was not found.
Error message that no owner parameter string was supplied.
Error message that no steps parameter was supplied.
Error message that no system name parameter string was supplied.
Error message that no variables parameter was supplied.
Error message that no workflow definition file parameter string was supplied.
Error message that no workflow key string was supplied.
Error message that no workflow name parameter string was supplied.
Error message that no system name parameter string was supplied.
Generated using TypeDoc
z/OS Workflows Package
Contains APIs to interact with the z/OS workflows APIs
API Examples
List Active Workflow Instance(s) in z/OSMF
import { IProfile, Session, Logger, LoggingConfigurer, TextUtils, ImperativeError, CredentialManagerFactory } from "@zowe/imperative"; import { ZosmfSession } from "@zowe/zosmf-for-zowe-sdk"; import { getDefaultProfile } from "@zowe/core-for-zowe-sdk"; import { IActiveWorkflows, ListWorkflows } from "@zowe/zos-workflows-for-zowe-sdk"; (async () => { //Initialize the Imperative Credential Manager Factory and Logger Logger.initLogger(LoggingConfigurer.configureLogger('lib', {name: 'test'})); // Uncommment the below line if the Secure Credential Store is in use // await CredentialManagerFactory.initialize({service: "Zowe-Plugin"}); // Get the default z/OSMF profile and create a z/OSMF session with it let defaultZosmfProfile: IProfile; try { defaultZosmfProfile = await getDefaultProfile("zosmf", true); } catch (err) { throw new ImperativeError({msg: "Failed to get a profile."}); } const session: Session = ZosmfSession.createBasicZosmfSession(defaultZosmfProfile); const response: IActiveWorkflows = await ListWorkflows.getWorkflows(session); console.log(response.workflows); })().catch((err) => { console.error(err); process.exit(1); });