UNPKG

usher

Version:

Simple DSL for composing decision workflows for AWS Simple Workflow

729 lines (237 loc) 10.1 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JSDoc: Class: Usher</title> <script src="scripts/prettify/prettify.js"> </script> <script src="scripts/prettify/lang-css.js"> </script> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css"> <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css"> </head> <body> <div id="main"> <h1 class="page-title">Class: Usher</h1> <section> <header> <h2> Usher </h2> </header> <article> <div class="container-overview"> <dt> <h4 class="name" id="Usher"><span class="type-signature"></span>new Usher<span class="signature">()</span><span class="type-signature"></span></h4> </dt> <dd> <div class="description"> Manages workflows </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="usher.js.html">usher.js</a>, <a href="usher.js.html#line19">line 19</a> </li></ul></dd> </dl> </dd> </div> <h3 class="subsection-title">Methods</h3> <dl> <dt> <h4 class="name" id="activities"><span class="type-signature"></span>activities<span class="signature">(name, domain, <span class="optional">options</span>)</span><span class="type-signature"> &rarr; {<a href="ActivityPoller.html">ActivityPoller</a>}</span></h4> </dt> <dd> <div class="description"> Create or retrieve a activity poller </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Argument</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>name</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="attributes"> </td> <td class="description last">The name of the poller.</td> </tr> <tr> <td class="name"><code>domain</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="attributes"> </td> <td class="description last">The AWS SWF domain name to execute the pollers activities in.</td> </tr> <tr> <td class="name"><code>options</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="attributes"> &lt;optional><br> </td> <td class="description last">Additional SWF options used when polling for activities (taskList=<name>-tasklist)</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="usher.js.html">usher.js</a>, <a href="usher.js.html#line88">line 88</a> </li></ul></dd> </dl> <h5>Returns:</h5> <div class="param-desc"> - A activity poller instance where specific activities can be defined </div> <dl> <dt> Type </dt> <dd> <span class="param-type"><a href="ActivityPoller.html">ActivityPoller</a></span> </dd> </dl> </dd> <dt> <h4 class="name" id="fragment"><span class="type-signature"></span>fragment<span class="signature">(name)</span><span class="type-signature"> &rarr; {<a href="Fragment.html">Fragment</a>}</span></h4> </dt> <dd> <div class="description"> Create or retrieve a workflow fragment </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>name</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last">The name of the fragment.</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="usher.js.html">usher.js</a>, <a href="usher.js.html#line65">line 65</a> </li></ul></dd> </dl> <h5>Returns:</h5> <div class="param-desc"> - A workflow fragment instance </div> <dl> <dt> Type </dt> <dd> <span class="param-type"><a href="Fragment.html">Fragment</a></span> </dd> </dl> </dd> <dt> <h4 class="name" id="workflow"><span class="type-signature"></span>workflow<span class="signature">(name, domain, <span class="optional">options</span>)</span><span class="type-signature"> &rarr; {<a href="DecisionPoller.html">DecisionPoller</a>}</span></h4> </dt> <dd> <div class="description"> Create or retrieve a workflow </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Argument</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>name</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="attributes"> </td> <td class="description last">The name of the workflow.</td> </tr> <tr> <td class="name"><code>domain</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="attributes"> </td> <td class="description last">The AWS SWF domain name to execute this workflow in.</td> </tr> <tr> <td class="name"><code>options</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="attributes"> &lt;optional><br> </td> <td class="description last">Additional SWF options used when creating and executing this workflow (taskList, tagList, childPolicy, executionStartToCloseTimeout, taskStartToCloseTimeout)</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="usher.js.html">usher.js</a>, <a href="usher.js.html#line44">line 44</a> </li></ul></dd> </dl> <h5>Returns:</h5> <div class="param-desc"> - A workflow poller where specific versions of a workflow can be defined </div> <dl> <dt> Type </dt> <dd> <span class="param-type"><a href="DecisionPoller.html">DecisionPoller</a></span> </dd> </dl> </dd> </dl> </article> </section> </div> <nav> <h2><a href="index.html">Index</a></h2><h3>Classes</h3><ul><li><a href="Accumulator.html">Accumulator</a></li><li><a href="ActivityPoller.html">ActivityPoller</a></li><li><a href="ActivityTask.html">ActivityTask</a></li><li><a href="DecisionPoller.html">DecisionPoller</a></li><li><a href="Fragment.html">Fragment</a></li><li><a href="Loop.html">Loop</a></li><li><a href="Usher.html">Usher</a></li><li><a href="WhileLoop.html">WhileLoop</a></li><li><a href="WorkflowVersion.html">WorkflowVersion</a></li></ul> </nav> <br clear="both"> <footer> Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha5</a> on Mon Sep 12 2016 14:59:00 GMT-0700 (MST) </footer> <script> prettyPrint(); </script> <script src="scripts/linenumber.js"> </script> </body> </html>