Difference between revisions of "RemoteWorkflowCall class"
(Created page with "{{CGscriptClass_Template |Name=<nowiki>RemoteWorkflowCall class</nowiki> |Description=<nowiki>Class to call workflows on other sites.</nowiki> |Constructors= {{CGscriptConstructo...") |
|||
Line 16: | Line 16: | ||
{{CGscriptParameters_Template|Type=HttpRequest|Name=<nowiki>request</nowiki>|Description=<nowiki>Call using a premade object, in case it requires special settings.</nowiki>}} | {{CGscriptParameters_Template|Type=HttpRequest|Name=<nowiki>request</nowiki>|Description=<nowiki>Call using a premade object, in case it requires special settings.</nowiki>}} | ||
|Description=<nowiki>Call the foreign site and get the result</nowiki>}} | |Description=<nowiki>Call the foreign site and get the result</nowiki>}} | ||
− | {{CGscriptMethods_Template|ReturnType= | + | {{CGscriptMethods_Template|ReturnType=HttpRequest|Name=<nowiki>CreateDefaultRequest</nowiki>|Parameters= |
{{CGscriptParameters_Template|Type=string|Name=<nowiki>site</nowiki>|Description=<nowiki>Url of the site to call. E.g. cg.catglobe.com.</nowiki>}} | {{CGscriptParameters_Template|Type=string|Name=<nowiki>site</nowiki>|Description=<nowiki>Url of the site to call. E.g. cg.catglobe.com.</nowiki>}} | ||
|Description=<nowiki>Create a request with the default settings</nowiki>}} | |Description=<nowiki>Create a request with the default settings</nowiki>}} | ||
Line 29: | Line 29: | ||
==== <span style="color:#a52a2a;">Examples</span> ==== | ==== <span style="color:#a52a2a;">Examples</span> ==== | ||
− | <span style="color: rgb(165, 42, 42);"><source lang="javascript"> | + | <span style="color: rgb(165, 42, 42);"><source lang="javascript"></source></span> |
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category:Workflow]] | [[Category:Workflow]] | ||
+ | __NOTOC__ |
Revision as of 11:27, 7 November 2011
RemoteWorkflowCall class
Class to call workflows on other sites.
Constructors
- (number resourceId "The resource id of the script to call on the foreign site", string username "The username on the foreign site", string password "The password on the foreign site") - Create new request
- (number resourceId "The resource id of the script to call on the foreign site", string username "The username on the foreign site", string password "The password on the foreign site", AnyType parameter "The parameter to call the workflow with on the foreign site") - Create new request
Methods
- AnyType Call(string site "Url of the site to call. E.g. cg.catglobe.com.") - Call the foreign site and get the result
- AnyType Call(HttpRequest request "Call using a premade object, in case it requires special settings.") - Call the foreign site and get the result
- HttpRequest CreateDefaultRequest(string site "Url of the site to call. E.g. cg.catglobe.com.") - Create a request with the default settings
- string ToString() - The string representation of the object
Properties
- string ObjectTypeName { get; } - The name of the type of object.
- TypeInformation TypeInformation { get; } - Get information about this class.
More information about an HTTP Message: http://www.jmarshall.com/easy/http/