Skip to main content

JavaScript Task

Zuora
  • 日本語のコンテンツは機械翻訳されており、補助的な参照を目的としています。機械翻訳の精度は保証できません。英語版が正となります。また、現時点では検索機能は日本語での検索をサポートしていません。翻訳に関するフィードバックについては、docs@zuora.comに送信してください。

JavaScript Task

The JavaScript task is a function that reads an input, the Data Payload, and generates logic in standard JavaScript syntax.

JavaScript tasks are not readily available and must be enabled by Zuora for each tenant. You can access the JavaScript task once it is enabled for your tenant. 

For example:

exports.step = function myFunction(input) {
  
  var executionDate = input["Workflow"]["ExecutionDate"];

    return {executionDate};
};

Take the input parameter and assign the Workflow ExecutionDate key to the variable executionDate. Returning the executionDate adds it to the Data Payload for use by the next step in the Workflow.

The maximum execution time to process this task is limited to 20 seconds.