
サービスタスク(データ設定)
業務データを指定の値、あるいは式の評価結果にて自動的に更新します。ひとつの自動工程で複数のデータ項目を更新することもできます。
Capture

Notes
- 「値もしくは式」が空の場合、データ項目の値はクリアされます
- ひとつの工程で複数のデータ項目に値をセットすることができます
- 複数のデータ項目に値をセットする場合、同時並行で評価され、値の更新に順序はありません
- データ項目の参照は、「フィールド名」を利用した EL 式で挿入されます
- フィールド名(#q_datetime)の代わりに、データ定義番号を利用した旧形式(data[‘9’])でも動作します
- 日付日時情報の書式を整形したい場合、 #format() を使った設定も可能です
- #format(): “java.text.SimpleDateFormat” の format() method
- 文字列情報を任意フォーマットに整形したい場合、 #sformat() を使った設定も可能です
- #sformat(): “java.lang.String” の format() method
- データ設定式の書式
- 保存するデータ項目が、件名、および文字型 / 日付型 / 日時型データ項目の場合、式は、SpEL (Spring Expression Language) の実装にしたがっています
- 件名、および文字型データ項目では、「4.3.18. Expression templating」を利用しています。すなわち、#{} の中身が SpEL として評価されます。
Config Examples
- Automation Name: “j++”
- Output Type: 数値型
- Expression: “#q_intJ + 1“
- Automation Name: “合計”
- Output Type: 数値型
- Expression: “#q_numSubtotal1 + #q_numSubtotal2“
- Automation Name: “前月の末日”
- Output Type: 日付型
- Expression: “#today.addMonths(-1).getLastDateInMonth()“
- Automation Name: “自動タイトル”
- Output Type: 件名
- Expression: “HR: #{#q_employeeName}, #{#q_termOfEmployment}“
- Automation Name: “時刻付ファイル名”
- Output Type: 文字型(単一行)
- Expression: “invoice-#{processInstanceId}-#{#format(#now, ‘yyyyMMddHHmm’)}.pdf“
- Automation Name: “メール草稿”
- Output Type: 文字型(複数行)
- Expression:
- Dear #{#q_customerName},
If you need to contact support, please include this reference: #{processInstanceId}
Best regards,
- Dear #{#q_customerName},
ピンバック: サービスタスク(データ設定) – Questetra Support
ピンバック: 「件名」を自動設定しよう – Questetra Support