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.

2020-03-03 (C) Questetra, Inc. (MIT License)
https://support.questetra.com/addons/any-data-type-delete/

Configs
  • A: Select DATA that contains the data to be deleted *
Script
// Nashorn Script (engine type: 1)
// 
// 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

Capture

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

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.

See also

1 thought on “any data-type, Delete”

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

Leave a Reply

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

%d bloggers like this: