Staffing Business Rule Methods

This topic provides a list of methods, a description of the method, and the accompanying parameters for Staffing Business Rules.

For details about adding a business rule, see Configuring Rules and Business Logic.

Set Field rules

Sometimes you want to automatically set a field value based on a set of triggering parameters; for this reason, the _SetField rules were created.

The _SetField rules provide several non-specific trigger values:

#IsEmpty: fires the rule if the trigger field on the Triggering Form has no value
#IsNotEmpty: fires the rule if the trigger field on the Triggering Form has some value - anything but empty
#IsDirty: fires the rule if the trigger field on the Triggering Form has any value other than empty and has been changed prior to save
#IsDirtyAndIsEmpty: fires the rule if the trigger field on the Triggering Form has had its value cleared prior to save
#IsDirtyAndNotEmpty: fires the rule if the trigger field on the Triggering Form has some value - anything but empty and has been changed prior to save

These options and descriptions are in the contextual help (click the field label). The Trigger Values of this help are selectable links that fill the trigger field automatically.

Method Description Parameters

SetStaffingEmployeeRelatedFields

Sets the Location, Comp Code, and Jurisdiction State from the selected Staffing Placement when the Staffing Placement field on the Comp Claim Claimant dataform is edited.

TriggerValue: IsDirty and NotEmpty

Split Staffing Location Code

You can create a rule that, when triggered, will split the Location Code imported from PrismHR into two fields: Staffing Client ID and Staffing Client Location. The resulting values are inserted into the Staffing Client ID and Staffing Client Location fields located on the Client Location dataform in the "Staffing Location Information" fieldset. This business rule is Inactive by default and it is only triggerable when the Contract Type on the Client Master is "Staffing".

Method

Description

Parameters

SplitStaffingLocationCode Splits the PrismHR Location Code field value into two field values and uses the resulting values to populate the Staffing Client ID and Staffing Client Location fields of the Client Location Dataform. Incoming value must include a hyphen to split into the two values.

TriggerValue: Is Dirty.

Note: Workspace or Client Master Contract Type must be "Staffing".

Related Topics: