Workflow Activity Definition - what is evailable from the script code?

alexthunder
Kilo Explorer

Dear All,

I wonder if someone could point us in the right direction with our challenge.

We are new to ServiceNow development, and making our first attempts ot implement a new Application. We have reeached the Workflows Definition section.

In the Workflow Activity Definition we can see the "Script" part which looks like the source-code written on either Java or JavaScript and it looks like opening the endless possibilities, BUT the questions is - how do we discover what is available from the source code of the script?

Let's say I write "var x =" and then what? What are the functions that are available to be called, what classes are available for making new instance of, what is the content of "this", what is the way to access the record in the database that is the subject of Workflow for the thread of code currently executed, or what is the way to make queries to other database tables?

I gues the general question is - where is the source of knowledge for finding answers to all these questions?

Cheers!

Alex

Experieco

10 REPLIES 10

Yes, Activity Designer requires Orchestration.   This thread was in the Orchestration section, so assumed you were working with an external system.



Any external call from Workflow requires Orchestration.



Custom Activity Definitions are traditionally licensed through Orchestration as well. Generally customers use Custom Activity Definitions for the purpose of Orchestration.



If you are using them for something related to work within ServiceNow, then no Orchestration is required.