@zowe/zos-workflows-for-zowe-sdk
TypeScript icon, indicating that this package has built-in type declarations

7.24.0 • Public • Published

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 { ProfileInfo } from "@zowe/imperative";
import { IActiveWorkflows, ListWorkflows } from "@zowe/zos-workflows-for-zowe-sdk";

(async () => {
    // Load connection info from default z/OSMF profile
    const profInfo = new ProfileInfo("zowe");
    await profInfo.readProfilesFromDisk();
    const zosmfProfAttrs = profInfo.getDefaultProfile("zosmf");
    const zosmfMergedArgs = profInfo.mergeArgsForProfile(zosmfProfAttrs, { getSecureVals: true });
    const session = ProfileInfo.createSession(zosmfMergedArgs.knownArgs);

    const response: IActiveWorkflows = await ListWorkflows.getWorkflows(session);
    console.log(response.workflows);
})().catch((err) => {
    console.error(err);
    process.exit(1);
});

Package Sidebar

Install

npm i @zowe/zos-workflows-for-zowe-sdk

Weekly Downloads

1,291

Version

7.24.0

License

EPL-2.0

Unpacked Size

177 kB

Total Files

117

Last publish

Collaborators

  • joe_winchester
  • zowerobot
  • markackertbroadcom