<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Workflow Activity Definition - what is evailable from the script code? in ITOM forum</title>
    <link>https://www.servicenow.com/community/itom-forum/workflow-activity-definition-what-is-evailable-from-the-script/m-p/905201#M12774</link>
    <description>&lt;P&gt;Are you referring to the Run Script Workflow Activity? If yes, you can click the arrow on the right of the script box and it will expose the code you can use. Hope that helps.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="aa.jpg"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/99910i25760567A5AC3DDB/image-size/large?v=v2&amp;amp;px=999" role="button" title="aa.jpg" alt="aa.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 24 Nov 2015 01:41:06 GMT</pubDate>
    <dc:creator>Michael Fry1</dc:creator>
    <dc:date>2015-11-24T01:41:06Z</dc:date>
    <item>
      <title>Workflow Activity Definition - what is evailable from the script code?</title>
      <link>https://www.servicenow.com/community/itom-forum/workflow-activity-definition-what-is-evailable-from-the-script/m-p/905200#M12773</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;I wonder if someone could point us in the right direction with our challenge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are new to ServiceNow development, and making our first attempts ot implement a new Application. We have reeached the Workflows Definition section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I gues the general question is - where is the source of knowledge for finding answers to all these questions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;P&gt;Experieco&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2015 21:48:13 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/workflow-activity-definition-what-is-evailable-from-the-script/m-p/905200#M12773</guid>
      <dc:creator>alexthunder</dc:creator>
      <dc:date>2015-11-23T21:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow Activity Definition - what is evailable from the script code?</title>
      <link>https://www.servicenow.com/community/itom-forum/workflow-activity-definition-what-is-evailable-from-the-script/m-p/905201#M12774</link>
      <description>&lt;P&gt;Are you referring to the Run Script Workflow Activity? If yes, you can click the arrow on the right of the script box and it will expose the code you can use. Hope that helps.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="aa.jpg"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/99910i25760567A5AC3DDB/image-size/large?v=v2&amp;amp;px=999" role="button" title="aa.jpg" alt="aa.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Nov 2015 01:41:06 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/workflow-activity-definition-what-is-evailable-from-the-script/m-p/905201#M12774</guid>
      <dc:creator>Michael Fry1</dc:creator>
      <dc:date>2015-11-24T01:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow Activity Definition - what is evailable from the script code?</title>
      <link>https://www.servicenow.com/community/itom-forum/workflow-activity-definition-what-is-evailable-from-the-script/m-p/905202#M12775</link>
      <description>&lt;P&gt;Thank you Michael,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;but no - I'm referring to Workflow Activity Definition, which is available under Workflow / Administration / Activity Definitions. I am attempting to create my own Activity which I would hope to be responsible for resolving the values for some data columns based on input provided in other columns of the same record.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;In the Workflow Activity Definition form there is no button that you illustrated in your comment.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;May be I am approaching it from the wrong angle though. Can you tell me how do I get to the form which is in your screenshot?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Nov 2015 19:40:36 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/workflow-activity-definition-what-is-evailable-from-the-script/m-p/905202#M12775</guid>
      <dc:creator>alexthunder</dc:creator>
      <dc:date>2015-11-24T19:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow Activity Definition - what is evailable from the script code?</title>
      <link>https://www.servicenow.com/community/itom-forum/workflow-activity-definition-what-is-evailable-from-the-script/m-p/905203#M12776</link>
      <description>&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;What version of the platform are you running on? I would recommend using Activity Designer instead of Activity Definitions. Activity Designer provides support for Application Scoping. &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;The right design patter for Application Development is to use Application Scoping.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Activity Designer allows you to easily create reusable activities with well defined inputs and outputs. Activities created with Activity Designer leverage the Databus. So when you orchestrate activities, you can see the data flow through the system on the live workflow context.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;You wont need to think about the code as much in Activity Designer. &amp;nbsp; You have pre-processing scripts for validation of inputs and data transformation before the execution command is run. You have post processing for manipulation of data before outputs.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Nov 2015 19:52:47 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/workflow-activity-definition-what-is-evailable-from-the-script/m-p/905203#M12776</guid>
      <dc:creator>rebecca_dias</dc:creator>
      <dc:date>2015-11-24T19:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow Activity Definition - what is evailable from the script code?</title>
      <link>https://www.servicenow.com/community/itom-forum/workflow-activity-definition-what-is-evailable-from-the-script/m-p/905204#M12777</link>
      <description>&lt;P&gt;Michael is showing the "run script" activity available on the WorkFlow editor, which lets you execute raw javascript as part of the workflow.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;What you're talking about is crafting your own activity definition, which I would *not* be doing unless you already had a clear cut use-case for doing so.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Not only because most things can be done via a Run Script that calls a Script Include, but also because custom Workflow Activity Definitions now requires the purchase of the Orchestration suite.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;As for what objects you can access from an Activity Definition, you can probably get all that stuff answered via the Scripting in Servicenow training course, which details most of the objects unique to SN. &amp;nbsp; &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Nov 2015 19:52:47 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/workflow-activity-definition-what-is-evailable-from-the-script/m-p/905204#M12777</guid>
      <dc:creator>Uncle Rob</dc:creator>
      <dc:date>2015-11-24T19:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow Activity Definition - what is evailable from the script code?</title>
      <link>https://www.servicenow.com/community/itom-forum/workflow-activity-definition-what-is-evailable-from-the-script/m-p/905205#M12778</link>
      <description>&lt;P&gt;Use Run Script when you need access to the scratchpad; otherwise, use the Java Script template in Activity Designer.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;The difference between Run Script and Activity Designer is that you have well defined inputs and outputs specific to the purpose of that script. &amp;nbsp; Also, with Activity Designer you have reuse. You can reuse the activity in numerous workflows. You can see where the activity is used in. Even if you don't plan to reuse the activity, for troubleshooting purposes and best design practices, we recommend using Activity Designer. Activities created with Activity Designer give you access to the Databus.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Nov 2015 19:56:40 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/workflow-activity-definition-what-is-evailable-from-the-script/m-p/905205#M12778</guid>
      <dc:creator>rebecca_dias</dc:creator>
      <dc:date>2015-11-24T19:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow Activity Definition - what is evailable from the script code?</title>
      <link>https://www.servicenow.com/community/itom-forum/workflow-activity-definition-what-is-evailable-from-the-script/m-p/905206#M12779</link>
      <description>&lt;P&gt;Is activity designer available without an orchestration license? &amp;nbsp; Sources are telling me no.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Nov 2015 20:07:46 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/workflow-activity-definition-what-is-evailable-from-the-script/m-p/905206#M12779</guid>
      <dc:creator>Uncle Rob</dc:creator>
      <dc:date>2015-11-24T20:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow Activity Definition - what is evailable from the script code?</title>
      <link>https://www.servicenow.com/community/itom-forum/workflow-activity-definition-what-is-evailable-from-the-script/m-p/905207#M12780</link>
      <description>&lt;P&gt;Thank you Rebecca,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;we are using version "F" (Fuji) and &amp;nbsp; we can't seem to be able to find neither Activity Designer nor Application Scoping within the keywords exposed via UI.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Can you give us the tip on where do we click to get there?&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Nov 2015 20:10:49 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/workflow-activity-definition-what-is-evailable-from-the-script/m-p/905207#M12780</guid>
      <dc:creator>alexthunder</dc:creator>
      <dc:date>2015-11-24T20:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow Activity Definition - what is evailable from the script code?</title>
      <link>https://www.servicenow.com/community/itom-forum/workflow-activity-definition-what-is-evailable-from-the-script/m-p/905208#M12781</link>
      <description>&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;Yes, Activity Designer requires Orchestration. &amp;nbsp; This thread was in the Orchestration section, so assumed you were working with an external system.&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Any external call from Workflow requires Orchestration.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Custom Activity Definitions are traditionally licensed through Orchestration as well. Generally customers use Custom Activity Definitions for the purpose of Orchestration.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;If you are using them for something related to work within ServiceNow, then no Orchestration is required.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Nov 2015 20:12:42 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/workflow-activity-definition-what-is-evailable-from-the-script/m-p/905208#M12781</guid>
      <dc:creator>rebecca_dias</dc:creator>
      <dc:date>2015-11-24T20:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow Activity Definition - what is evailable from the script code?</title>
      <link>https://www.servicenow.com/community/itom-forum/workflow-activity-definition-what-is-evailable-from-the-script/m-p/905209#M12782</link>
      <description>&lt;P&gt;You would need to install the Orchestration Plugin. After you install the Orchestration Plugin, you will see the &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;'Packs', 'Custom', and 'Data' Tabs&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Packs are where Orchestration Applications will show up. So if you create a scoped application that wraps SAP for example it will be there. Or if you download a scoped application which includes activities, you will see them there.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;'Custom' is where you go to create new activities with Activity Designer.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;The Data tab is where you see available data on a workflow you are developing.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;See a screenshot where I created numerous workflow activities including ones for Hadoop and Twitter automation.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screen Shot 2015-11-24 at 12.16.35 PM.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/99911i54A074B02B346737/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2015-11-24 at 12.16.35 PM.png" alt="Screen Shot 2015-11-24 at 12.16.35 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Nov 2015 20:13:09 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/workflow-activity-definition-what-is-evailable-from-the-script/m-p/905209#M12782</guid>
      <dc:creator>rebecca_dias</dc:creator>
      <dc:date>2015-11-24T20:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow Activity Definition - what is evailable from the script code?</title>
      <link>https://www.servicenow.com/community/itom-forum/workflow-activity-definition-what-is-evailable-from-the-script/m-p/905210#M12783</link>
      <description>&lt;P&gt;In as friendly a way as I can say it, if you guys don't have a firm grasp on &lt;A title="ki.servicenow.com/index.php?title=Application_Scope#gsc.tab=0" href="http://wiki.servicenow.com/index.php?title=Application_Scope#gsc.tab=0"&gt;Application Scoping in ServiceNow&lt;/A&gt;, you should probably not be deploying apps for it.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Nov 2015 20:22:20 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/workflow-activity-definition-what-is-evailable-from-the-script/m-p/905210#M12783</guid>
      <dc:creator>Uncle Rob</dc:creator>
      <dc:date>2015-11-24T20:22:20Z</dc:date>
    </item>
  </channel>
</rss>

