c_SSPIncidentTopicData

Methods


<static> getIncidentTopicCategories( language ) → {Array.<CategoryTreeItem>}

Description

Retrieve the Incident definition categories

Parameters
Name Type Description
language LanguageType
Returns

Tree items


<static> _getTopicsForServices( services )

Description

Translate a list of services into a list of mapped incident topics

Parameters
Name Type Description
services Array.<sys_id>

<static> getProductQuestions( topicSysId, userType, userConfiguration ) → {Array.<FormField>}

Description

Get a list fof questions to ask for Sold product Case

Parameters
Name Type Description
topicSysId sys_id
userType UserType
userConfiguration UserConfiguration
Returns

<static> getIncidentTopicQuestions( topicSysId, userType, userConfiguration ) → {Array.<FormField>}

Description

Get all the questions that are defined for a topic (This produced form output and needs to be refactored in a seperate isolated behaviour)

Parameters
Name Type Description
topicSysId sys_id
userType UserType
userConfiguration UserConfiguration
Returns

Array


<static> _isChoiceSet( type ) → {boolean}

Description

Checks if we have value in u_indef_choice_set

Parameters
Name Type Description
type string
Returns

<static> getChoiceList( sysId ) → {Array.<Choice>}

Description

Get a choice list

Parameters
Name Type Description
sysId sys_id
Returns

<static> _convertObjectToChoiceArray( obj ) → {Array.<Choice>}

Description

Converts an object to choice array/list

Parameters
Name Type Description
obj Object
Returns

Array with choice values as key-value pair


<static> getTopicRecordById( topicSysId ) → {Object}

Description

Get a topic record by sys_id

Parameters
Name Type Description
topicSysId sys_id
Returns

<static> getTopic( topicSysId ) → {IncidentTopic}

Description

Retrieve a topic data object from disk

Parameters
Name Type Description
topicSysId sys_id
Returns

<static> getDefaultCaseFields( user ) → {Array.<FormField>}

Description

Get the default field applicable for any Case form order 1000 and 1001 are description and attachments, which normally always go at the bottom

Parameters
Name Type Description
user UserConfiguration
Returns

<static> _createFormField( field ) → {FormField}

Description

Helper function to create a FormField object with all values default exvcept the provided ones

Parameters
Name Type Description
field FormField
Returns

<static> getTopicForProduct( productId, language ) → {sys_id}

Description

Retrieve a topic identifier based on the users language and the provided productId, when no default mapping or no topic returns undefined

Parameters
Name Type Description
productId sys_id
language string
Returns

<static> createServiceTopicMapping() → {Object}

Description

Create a configuration object to map default topics for any business service that can be mapped to a Sold Product

Returns

<static> saveIncidentRelation( record ) → {boolean}

Description

Write a record to bind knowledge, topic and incident

Parameters
Name Type Description
record Object
Returns