INNER CODE UNIT · JavaScript

updateStatus

aelassas/wexflow · samples/WexflowTesting/UglifyJs_src/wexflow-designer.js:377

    function updateStatus(workflowId, force) {
        getWorkflow(workflowId,
            function (workflow) {
                if (workflow.IsEnabled === false) {
                    notify("This workflow is disabled.");
                } else {
                    if (force === false && workflowStatusChanged(workflow) === false) return;

                    if (workflow.IsRunning === true && workflow.IsPaused === false) {
                        notify("This workflow is running...");
                    } else if (workflow.IsPaused === true) {
                        notify("This workflow is suspended.");
                    } else {
                        notify("This workflow is not running.");
                    }
                }
            });
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…