any data-type, Delete
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 "Service Task (Data Assignment)"
// - 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 or Enterprise edition.

Notes

  1. Guide-Panel type cannot be selected.
  2. Data on Discussion type cannot be deleted.
  3. For Files type data, all files will be deleted.
  4. Required data items will result in a deletion error.
  5. If you want to forcibly delete required items, use “Service Task (Data Assignment)”
    1. Some data items are not supported.

Capture

Deletes data of any data type. By overwriting with a null value, all input values in the data item will be deleted.

See also

3 thoughts on “any data-type, Delete”

  1. Pingback: Delete Data (Overwrite with Null) – Questetra Support

  2. Pingback: String, Get MD5-Hash – Questetra Support

  3. Pingback: any data-type, Output to Log – Questetra Support

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: