FSM Program Configuration Reference

The following table lists Program properties, record settings, defaults, and effects.

Property or Setting

Location

Accepted Value

Default

Effect

projectRules

program

Project rule array

[]

All matching rules contribute planned cases. The standard configuration supplies no schedule.

caseRules

program

Case rule array

[]

All matching rules contribute tasks. A case alone doesn't guarantee tasks.

projectMap, caseMap

program

Field maps

Asset and customer mappings. Case mappings also include assignee.

Supplies values available as project or supportcase in rule template tags.

projectData, caseData

program

Named related-data definitions

Related asset and customer. Case data also loads the linked project, including its type.

Supplies additional named data for template tags. Preserve the linked project lookup when case rules use Project Type or project data.

projectInactive

program

Project status-ID array

[3]

Stops case creation and enables removal assessment for qualifying cases.

caseInactive

program

Case status-ID array

[1]

Classifies cases removable under an inactive project.

Field Service Project Type

Project custentity_nx_project_type

Project Type ID

No Program type supplied by the rules.

Required for Project-to-Case calculation and selection of applicable project rules.

Start Date

Project startdate

Date

Existing record value.

Sets the required lower boundary for initial occurrences and anchors the pattern when Program Start Date is empty.

End Date

Project enddate

Date

Existing record value, optional when a usable rolling horizon is supplied.

Upper boundary for initially calculated occurrences, taking precedence over the rolling horizon as that boundary.

Program Start Date, also labeled Field Service Start Date

Project custentity_nx_start_date

Date

Project Start Date when empty.

Anchors the schedule pattern without removing the Project Start Date lower boundary.

Program Create Until

Project custentity_nx_program_create_until

Nonnegative integer. A value of 0 means no rolling horizon. Measured in days ahead of the current date.

Empty in the supplied field definition.

Supplies a rolling creation horizon and can supply the calculation end when Project End Date is absent.

Field Service Time Zone

Project: custentity_nx_time_zone. Case: custevent_nx_time_zone.

FSM Time Zone record ID

Supplied through normal record processing.

Initial time zone sourcing and rolling horizon calculation.

Field Service Update Program

Project: custentity_nx_program_update. Case: custevent_nx_program_update.

Checkbox

Existing record value.

Saved project requests assess case additions and removals. Saved case requests assess missing child tasks.

Program initially carries the project's value to generated cases and the case's value to generated tasks. The project's time zone determines the rolling horizon. If the project's time zone is empty, calculation uses the time zone preference of the person running the process.

Use internal IDs for types and statuses from your account. Don't assume that labels or IDs have the same meaning across accounts. Project statuses outside projectInactive are active for Program calculation. A status labeled Closed is not automatically inactive. The caseInactive property controls removal under an inactive project, rather than disabling task generation on that case.

A project needs its type and Start Date. It also needs End Date or a positive usable Program Create Until value, even for one occurrence. For background Case-to-Task processing, a case needs a Case Type, Field Service Start Date, and applicable rules. An asset or customer is needed when required by the chosen rules, related-data definitions, or destination record.

Use forms that expose the required record fields. Add account-specific source and destination fields to the appropriate records and forms before referencing those fields in rules, with compatible field types and access. Form layouts in examples are illustrative, rather than requirements for a particular custom form. For shared editing, merge, and activation instructions, see FSM Configuration.

Default JSON

The following JSON fragment shows the standard defaults for all eight Program properties. Other model mappings and record defaults remain inherited. The empty rule arrays supply no schedule.

            {
  "program": {
    "projectRules": [],
    "caseRules": [],
    "projectInactive": [
      3
    ],
    "caseInactive": [
      1
    ],
    "projectMap": {
      "asset": "custentity_nx_asset[integer]",
      "customer": "custentity_nx_customer[integer]"
    },
    "caseMap": {
      "asset": "custevent_nx_case_asset[integer]",
      "customer": "custevent_nx_customer[integer]",
      "assigned": "assigned[integer]"
    },
    "projectData": {
      "asset": {
        "record": "customrecord_nx_asset",
        "filters": ["internalid", "anyof", "${ project.asset || 0 }"],
        "map": {}
      },
      "customer": {
        "record": "customer",
        "filters": ["internalid", "anyof", "${ project.customer || 0 }"],
        "map": {}
      }
    },
    "caseData": {
      "asset": {
        "record": "customrecord_nx_asset",
        "filters": [
          ["internalid", "anyof", "${ supportcase.asset || 0 }"],
          "and",
          ["formulatext:ROWNUM", "is", "1"]
        ],
        "result": 0,
        "map": {}
      },
      "customer": {
        "record": "customer",
        "filters": [
          ["internalid", "anyof", "${ supportcase.customer || 0 }"],
          "and",
          ["formulatext:ROWNUM", "is", "1"]
        ],
        "result": 0,
        "map": {}
      },
      "project": {
        "record": "job",
        "filters": [
          ["internalid", "anyof", "${ supportcase.company || 0 }"],
          "and",
          ["formulatext:ROWNUM", "is", "1"]
        ],
        "result": 0,
        "map": {
          "type": "custentity_nx_project_type"
        }
      }
    }
  }
} 

          

Related Data Lookups

The names under projectData and caseData become template contexts when the corresponding rules run. These contexts are separate from the current record's project or supportcase inputs.

The following table summarizes lookup results and configuration dependencies.

Definition

Lookup and Result Shape

Configuration Dependency

projectData.asset, projectData.customer

Searches the mapped asset or customer ID on the project. Returns an array of search results because result is omitted.

Keep the project's asset and customer input mappings compatible with these filters. Add required related fields to the relevant map and use tags that match the returned shape.

caseData.asset, caseData.customer

Searches the mapped asset or customer ID on the case, using the standard filter for the first row. The result: 0 setting selects the first returned object, or supplies no object when no match exists.

Keep the case's asset and customer input mappings and the result position compatible with tags that use this data.

caseData.project

Searches job using the case's mapped company ID, the standard filter for the first row, and result: 0. Maps custentity_nx_project_type to project.type.

Supplies the linked Project Type for case rule conditions and linked project data for task outputs. Preserve the record, filters, result position, and type mapping when extending the map.

The filters use 0 when the mapped relationship ID is missing. A customer in the case's Company field doesn't supply a resolved project. The linked project search must return a project for project.type to be available.

An empty configured map doesn't indicate that every field on the related record is loaded. Program can add a missing direct-field mapping to an existing named data definition when a rule tag references that field. Aliases, formulas, joins, and formatted values still require compatible explicit mappings. Changing a lookup to return an array instead of a single object, or the reverse, changes the tag paths for its result. For reusable search and mapping syntax, see FSM Searches and Field Mapping.

Additional Information

Related Topics

General Notices