Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

DecisionTableManager

Description
Manager for Decision Tables
Package
eu.rivetgroup.atlas.jira.plugins.decisiontables.api
Methods

DecisionTableOperations getDecisionTableOperations(dmnModelName, decisionKey)

Description
Returns DecisionTableOperations instance for given DMN model name and decision key. Typically this method is used once and the returned operations instance can be stored in some service bean instance for later usage. Multiple threads can safely use DecisionTableOperations.
Return
DecisionTableOperations instance
Parameters
  • String dmnModelName - DMN model name
  • String decisionKey - unique decision key within DMN model

DecisionTableOperations

Description
Decision table operations that provide execution of decision table queries.
Package
eu.rivetgroup.atlas.jira.plugins.decisiontables.api
Methods

DecisionTableResult executeQuery(inputParameters)

Description

Executes the decision table query build form given input parameters map and returns the result with matched entries. The input parameters map should contain keys for each required input parameter.

Return
Result of the query
Parameters

Map<String, ?> inputParameters - the decision table input parameters used to build a decision table query

Throws

NoMatchedResultFound - In case there are no matching entries found for the specified query/input parameters. Throwing this may depend on the corresponding decision table definition.


DecisionTableResult<T>

Description
Represents a result of decision table query execution. It could be a single value or a list of the values. That class allows getting a result in various scenarios, which can help in additional result checking or conversions.
Type parameters

<T> - result object type 

Package
eu.rivetgroup.atlas.jira.plugins.decisiontables.api.query
Methods

T getResult()

Description

The decision table result with the default type, which is depended on the decision table definition.

Return
Default decision table result

Map<String, ?> first()

Description
Returns a found result or the first entry of the list result
Return
Single result element or null, if a list is empty or the value is null
Annotations
Nullable

Map<String, ?> firstNotEmpty()

Description
Returns a found result or the first entry of the list result
Return
Single result element
Throws
NoMatchedResultFound - in case if the result is null or it's an empty list
Annotations
Nonnull

Map<String, ?> single()

Description
Returns a found result or the first entry of the list result
Return
Single result element or null, if a list is empty or the value is null
Throws
TooManyMatchedResultFound - in case if the result is a list that contains more than one element.
Annotations
Nullable

Map<String, ?> singleNonEmpty()

Description
Returns a found result or the first entry of the list result
Return
Single result element
Throws

NoMatchedResultFound - in case if the result is null or it's an empty list

TooManyMatchedResultFound - in case if the result is a list that contains more than one element

Annotations
Nonnull

List<Map<String, ?>> multi()

Description
Return a list of found entries
Return
  • The list of entries, if they exist
  • null if the result is null or it is an empty list
Annotations
Nullable

List<Map<String, ?>> multiNonNull()

Description
Return a list of found entries
Return
  • The list of entries, if they exist
  • An empty list if the result is null or it is an empty list
Annotations
Nonnull

List<Map<String, ?>> multiNonEmpty()

Description
Return a list of found entries
Return

The list of entries, if they exist

Throws
NoMatchedResultFound - in case if the result is null or it's an empty list
Annotations
Nonnull

DecisionTableQueryExecutionContextInfo getExecutionContextInfo()

Description
Returns the application message, which contains contextual information about the execution of a decision table query
Return
Contextual information about the execution of a decision table query
  • No labels