Timer Start: Number of Choices

Auto Step icon
Basic Configs
Step Name
Note
Configs for this Auto Step
conf_idData
C1: Select type Data item *

Notes

  • You can set multiple schedules on a Timer
  • The number of Cases that can be started simultaneously is limited to 100
  • Cannot be used when the choice of the specified select-type data item is via HTTP
  • You can start the timer immediately and start the Case as defined in the app
  • Open the start page from the URL:

    • https://{YOUR_DOMAIN}/OR/ProcessModel/{APP_ID}/view (the “m” in the app ID is not required)

  • [Case Manager] authorization is required

Capture

Bulk Start Cases button

See also

Script (click to open)

    • An XML file that contains the code below is available to download
        • num_of_choices.xml (C) Questetra, Inc. (MIT License)
            • Just use it for a reference for the codes

            • This file cannot be imported into a Workflow App as an Add-on


/**
 * @param {number} limit 選択肢数の上限
 * @returns {Array} items 選択肢の値一覧
 * @returns {string} items[].id 選択肢の値
 */
const list = (limit) => {
    const def = configs.getObject("conf_idData");
    const choices = itemDao.findAll(def);
    if (choices.size() > limit) {
        throw new Error(`The number of choices ${choices.size()} exceeds the limit ${limit}.`);
    }
    const items = [];
    choices.forEach(item => {
        items.push({
            id: item.getValue()
        });
    });
    return items;
};

Discover more from Questetra Support

Subscribe now to keep reading and get access to the full archive.

Continue reading