Name
global.PDDiagramConstants
Description
Contains hardcoded values used in PD Diagram Script Includes such as those related with GraphQL
Script
var PDDiagramConstants = Class.create();
PDDiagramConstants.prototype = {
initialize: function() {
},
type: 'PDDiagramConstants'
};
PDDiagramConstants.TABLES = {
PD_PROCESS_DEFINITION: 'sys_pd_process_definition',
PD_SWIMLANE: 'sys_pd_swim_lane',
PD_ACTIVITY: 'sys_pd_activity',
PD_DIAGRAM_ACTIVITY_APP_OBJECT: 'sys_pd_activity_m2m_app_object'
};
// Start Rules
PDDiagramConstants.START_RULES = {
AFTER_ACTIVITIES: '7abaf173c35101102a86cb03b940dd62',
IMMEDIATE: 'ef8ab8c0a3f04bceb117263f51401070'
};
// Table Field Constants
PDDiagramConstants.FIELDS = {
SYS_META: 'sys_meta',
SYS_ID: 'sys_id',
LABEL: 'label',
NAME: 'name',
DESCRIPTION: 'description',
COORDINATES: 'coordinates',
ACTIVITY: 'activity',
ACTIVITY_DEFINITION: 'activity_definition',
PROCESS_DEFINITION: 'process_definition',
START_RULE: 'start_rule',
START_RULE_VARS: 'start_rule_vars',
SWIM_LANE: 'swim_lane',
LANE: 'lane',
IMAGE: 'image',
ORDER: 'order',
ACTIVE: 'active',
SYS_CREATED_ON: 'sys_created_on',
SYS_UPDATED_ON: 'sys_updated_on',
CONDITION_TO_RUN: 'condition_to_run',
START_RULE_VAR_AFTER_ACTIVITIES: 'start_rule_vars.activities',
START_RULE_VAR_BRANCHES: 'start_rule_vars.branches',
TARGET_TABLE: 'target_table',
TARGET_RECORD: 'target_record',
VIEW_TYPE: 'view_type',
INPUTS: 'inputs',
TYPE_VALS: 'type_vals',
DESIGNER_STATE: 'designer_state'
};
// Right now these two constants are the same but they can
// change in the future. For example when we add the conditional
// Activity Definition, we will initially limit that to diagram
// processes only but we can have many conditional Activities
// in the same diagram process.
PDDiagramConstants.DIAGRAM_ONLY_ADS = [
'fe92d933c7a11110bfbaf89f51c260b7', // Diagram Start
'87647253c7211110bfbaf89f51c260fb' // Diagram End
];
PDDiagramConstants.SINGLETON_ADS = [
'fe92d933c7a11110bfbaf89f51c260b7', // Diagram Start
'87647253c7211110bfbaf89f51c260fb' // Diagram End
];
PDDiagramConstants.ACTIVITY_DEFINITION_IDS = {
START: "fe92d933c7a11110bfbaf89f51c260b7",
END: "87647253c7211110bfbaf89f51c260fb",
DECISION: "226ed8f6c7ad5110bfbaf89f51c260b1"
};
Sys ID
f043c7fd77430110033a902f8c5a990b