
タイマー開始: 選択肢数
Timer Start: the number of choices
このアイテムは、定期的に選択肢の数だけ、プロセスを開始します。各プロセスの選択型データ項目には、それぞれの選択肢が設定されます。
Basic Configs
- 工程名
- メモ
Configs for this Auto Step
- conf_idData
- C1: 選択型データ項目 *
Notes
- 複数のタイマー時刻を設定することができます
- 同時に起動できるプロセス数は100に制限されます
- 指定した選択型データ項目の選択肢が HTTP 経由の場合は利用できません
Capture

See Also
Script (click to open)
- 次のスクリプトが記述されている XML ファイルをダウンロードできます
- num_of_choices.xml (C) Questetra, Inc. (MIT License)
- Professional のワークフロー基盤では、ファイル内容を改変しオリジナルのアドオン自動工程として活用できます
/**
* @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;
};