How to use the @ibm-functions/composer.while function in @ibm-functions/composer

To help you get started, we’ve selected a few @ibm-functions/composer examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ibm-functions / shell / app / plugins / modules / composer / lib / while.js View on Github external
.then( ([{entity:task,fsm:taskFSM}, {entity:condition,fsm:conditionFSM}]) => {
                // make the FSM
                const fsm = composer.while(conditionFSM, taskFSM)

                // we were asked to create a new action for this FSM
                return create({ name, fsm, wsk, commandTree, execOptions, type })
            })
    }