AgileApps Support Wiki Pre Release

Difference between revisions of "Incoming Method Parameters"

From AgileApps Support Wiki
imported>Aeric
(Created page with "When a Java method is invoked by a Rule or Macro, the record's fields are passed to the method in a Parameters instance. That instance contains the o...")
 
imported>Aeric
Line 1: Line 1:
When a Java method is invoked by a [[Rule]] or [[Macro]], the record's fields are passed to the method in a [[Parameters Class|Parameters]] instance. That instance contains the object's fields, along with the standard fields shown above. The following convenience parameters are passed, as well:
When a Java method is invoked by a [[Rule]] or [[Macro]], the record's fields are passed to the method in a [[Parameters Class|Parameters]] instance. That instance contains the object's custom fields, as well as the [[Standard Object Fields]]. The following convenience parameters are passed, as well:
:{| border="1" cellpadding="5" cellspacing="1" width="50%"
:{| border="1" cellpadding="5" cellspacing="1" width="50%"
! Field name !! Notes
! Field name !! Notes
|-
|-
| name || The record's "name", as specified in the object's Record Locator definition. For cases, it's the unique case number. For users, it's the unique username. And so on.
| name || The record's "name", as specified in the object's Record Locator definition. For cases, it's the unique case number. For users, it's the unique username. And so on.
|-
| is_deleted || True (=1) if the record is in the recycle bin. Otherwise false (=0).
|-
| userPrimaryTeamId || The current user's team affiliation.
|}


===Additional Macro Parameters===
These values have counterparts in the rule parameters, but have different names:
:{| border="1" cellpadding="5" cellspacing="1" width="50%"
! Field name !! Notes
| p_service_domain || Ex: <tt>acme.claimdynamics.com</tt>
|-
|-
| is_deleted || True (=1) if the record is in the recycle bin. Otherwise false (=0).
| user_id ||
|}
 
===Additional Rule Parameters===
These values are included when a Java method is invoked from a Rule. The first two are equivalent to the additional macro parameters shown above. A number of useful session values are included as well, along with values that pertain to the current user:
:{| border="1" cellpadding="5" cellspacing="1" width="50%"
! Field name !! Notes
| serverName ||  Ex: <tt>acme.claimdynamics.com</tt>
|-
| userId ||
 
|-
| colspan="2" bgcolor="lightblue" style="height:6px" | <!-- SPACER ROW -->
|-
| current_application ||
|-
| JSESSIONID || The session identifier. (Generally used only when making a REST API call.)
|-
| isCaseDynamicsSession || True (=1) if the ServiceDesk application is running. Else false (=0).
|-
| login || {{TBD|???}}
|-
| layout_id || The ID of the [[Form]] that is currently being used to display the record.


|-  
|-  
| colspan="2" bgcolor="lightblue" style="height:6px" | <!-- SPACER ROW -->
| colspan="2" bgcolor="lightblue" style="height:6px" | <!-- SPACER ROW -->
|-
| user.id ||
|-
| user.primaryteamid ||
|-
| userPrimaryTerritoryId ||
|-
| user_local_time || 
|-
| user || User's full name. For example: Aaron Acme
|-
| user.firstname ||
|-
| user.lastname ||
|-
| user.primaryteamname || 
|-
| user.primaryroleid ||
|-
| user.email<br>userEmail || Email address
|-
| lang || User's language identifer. For example: <tt>en</tt>
|}
|}

Revision as of 00:52, 12 November 2014

When a Java method is invoked by a Rule or Macro, the record's fields are passed to the method in a Parameters instance. That instance contains the object's custom fields, as well as the Standard Object Fields. The following convenience parameters are passed, as well:

Field name Notes
name The record's "name", as specified in the object's Record Locator definition. For cases, it's the unique case number. For users, it's the unique username. And so on.
is_deleted True (=1) if the record is in the recycle bin. Otherwise false (=0).
userPrimaryTeamId The current user's team affiliation.

Additional Macro Parameters

These values have counterparts in the rule parameters, but have different names:

Field name Notes p_service_domain Ex: acme.claimdynamics.com
user_id

Additional Rule Parameters

These values are included when a Java method is invoked from a Rule. The first two are equivalent to the additional macro parameters shown above. A number of useful session values are included as well, along with values that pertain to the current user:

Field name Notes serverName Ex: acme.claimdynamics.com
userId
current_application
JSESSIONID The session identifier. (Generally used only when making a REST API call.)
isCaseDynamicsSession True (=1) if the ServiceDesk application is running. Else false (=0).
login __TBD: ???__
layout_id The ID of the Form that is currently being used to display the record.
user.id
user.primaryteamid
userPrimaryTerritoryId
user_local_time
user User's full name. For example: Aaron Acme
user.firstname
user.lastname
user.primaryteamname
user.primaryroleid
user.email
userEmail
Email address
lang User's language identifer. For example: en