any data-type, Delete
Deletes data of any data type. By overwriting with a null value, all input values in the data item will be deleted.
Configs
- A: Select DATA that contains the data to be deleted *
Script (click to open)
// Nashorn Script (engine type: 2)
//
// Notes:
// Guide-Panel type cannot be selected.
// Data on Discussion type cannot be deleted.
// For Files type data, all files will be deleted.
// Required data items will result in a deletion error.
// If you want to forcibly delete required items, use "Update Data"
// - Some data items are not supported
//
// Notes (ja):
// ガイドパネル型(データを格納しない)は選択できません
// ディスカッション型(タイムスタンプ付の追記型)のデータは削除できません
// ファイル型データの場合、全てのファイルが削除されます
// 入力必須となっているデータ項目は削除エラーとなります
// 必須項目を強制的に削除したい場合は『データ更新』を利用します
// - 一部のデータ項目には対応していません
//////// START "main()" ////////////////////////////////////////////////////////////////
main();
function main(){
//// == Config Retrieving / 工程コンフィグの参照 ==
const dataIdA = configs.get( "conf_DataIdA" ) + ""; // required
// 'java.lang.String' to javascript primitive 'string'
strDefNameA = engine.findDataDefinitionByNumber( dataIdA ).getName();
strDefVarNameA = engine.findDataDefinitionByNumber( dataIdA ).getVarName();
numDefIdA = engine.findDataDefinitionByNumber( dataIdA ).getNumber();
// com.questetra.bpms.core.event.scripttask.ProcessDataDefinitionView
engine.log( " AutomatedTask Config:" +
" Delete Target: " + numDefIdA +
" : " + strDefNameA + " (" + strDefVarNameA + ")" );
//// == Data Retrieving / ワークフローデータの参照 ==
// nothing
//// == Calculating / 演算 ==
// nothing
//// == Data Updating / ワークフローデータへの代入 ==
engine.setDataByNumber( dataIdA, null );
} //////// END "main()" ////////////////////////////////////////////////////////////////

Download
2021-04-25 (C) Questetra, Inc. (MIT License)
https://support.questetra.com/addons/any-data-type-delete/
The Addon-import feature is available with Professional edition.
Notes
- Guide-Panel type cannot be selected.
- Data on Discussion type cannot be deleted.
- For Files type data, all files will be deleted.
- Required data items will result in a deletion error.
- If you want to forcibly delete required items, use “Update Data”
Capture
See also
Like this:
Like Loading...
Related
Pingback: Delete Data (Overwrite with Null) – Questetra Support
Pingback: String, Get MD5-Hash – Questetra Support
Pingback: any data-type, Output to Log – Questetra Support