LSPS documentation logo
LSPS Documentation
Data Types

Core

GoalPlanABSTRACTSYSTEM

An abstract record type used to represent a goal or a plan.

name : String

Name of the goal or plan.

state : String

Current state of execution of the goal or plan.

parent : Goal

Parent goal of the GoalPlan in the current module instance.

metadata : Map<String, String>

Set of metadata (key-value pairs) of the goal or plan.

GoalABSTRACTSYSTEM extends GoalPlan

A goal of any kind.

children : Set<GoalPlan>

Set of children (goals or plans).

isAnyPlanRunning : Boolean

If true, at least one of the goal's sub-plans (taken recursively, i.e., not only direct sub-plans) is running. If false, none of the goal's sub-plans are running.

runningPlans : Set<Plan>

Set of the direct sub-plans that are running. It is always an empty set for a goal decomposed into goals.

AchieveGoalSYSTEMFINAL extends Goal

A single achieve goal.

preCondition : { : Boolean}

Precondition of the achieve goal.

deactivateCondition : { : Boolean}

Deactivate condition of the achieve goal.

MaintainGoalSYSTEMFINAL extends Goal

A single maintain goal.

maintainCondition : { : Boolean}

Maintain condition of the maintain goal.

PlanSYSTEMFINAL extends GoalPlan

Represents a single plan.

preCondition : { : Boolean}

Precondition of the plan.

ModelSHAREDSYSTEM

A model

id : Integer

Unique identifier of the model.

name : String

Name of the model.

version : String

Version of the model.

uploadDate : Date

Time when the model was uploaded.

ModelInstanceSHAREDSYSTEM

A model instance.

id : Integer

Unique identifier of the model instance.

isRunning : Boolean

If true, the model instance is running. If false, the model instance has finished.

start : Date

Start date of the model instance.

finish : Date

Finish date of the model instance. It is null if the model instance is not finished yet.

ProcessInstanceSYSTEM

A process instance.

id : Integer

Identifier of the process instance.

process : String

Name of the underlying process.

modelInstance : ModelInstance

The owning model instance.

isRunning : Boolean

If true, the process instance is running. If false, the process instance has finished.

metadata : Map<String, String>

Set of metadata (key-value pairs) of the process instance.

Duration

Duration expressed in various time units. Its value is given as the sum of all values of the units. Each field value can be positive or negative.

years : Integer

Number of years of the duration.

months : Integer

Number of months of the duration.

weeks : Integer

Number of weeks of the duration.

days : Integer

Number of days of the duration.

hours : Integer

Number of hours of the duration.

minutes : Integer

Number of minutes of the duration.

seconds : Integer

Number of seconds of the duration.

millis : Integer

Number of milliseconds of the duration.

RepeatedGoal

A goal that is to be repeated and a set of settings of slots related to the goal repetition. This type is used in the RepeatGoals task type.

goal : AchieveGoal

Achieve goal to be repeated.

slotSettings : Map<Reference<Object>, Object>

Map of references to slots and the values to be used for their setting. This allows you to set variable values on goal repeat.

ConstraintViolation

Violation of a single data constraint on a record or property. Note that a validation results in a list of constraint violations.

id : String

ID of the violated constraint. It is assigned during validation to all created ConstraintViolation objects that have a null id.

guid : String

GUID of the violated constraint. It is assigned automatically after the constraint execution during validation to all created ConstraintViolation objects that have a null guid.

message : String

Message returned by the constraint expression defined in the corresponding ConstraintType.

record : Record

Record with the value that did not pass the validation.

property : Property

Property of the record which did not pass the validation.

payload : Object

Application data.

Tag

Tag that is used to classify data constraints and filter them on runtime.

name : String

Full name of the validation tag, for example, "mymodule::mytag".

Activity

Action performed by an Execution task.

It is used also as the supertype for activity-reflection types for task types or processes.

Such an Action subtype is created when the "Create activity reflection type" option of a process or task type is selected.

UserTrackSHAREDSYSTEM

Record for the entry of the user-activity tracking.

id : Integer

Unique ID of the user tracking.

userLogin : String

Login name of the tracked user.

startDate : Date

Time of the first activity of the track entry.

endDate : Date

Time of the last activity of the track entry.

File

File with binary content.

content : Binary

Binary content.

filename : String

Filename of the file.

mime : String

MIME type of the data.

size : Integer

Actual size of the binary data in bytes.

BinaryHandleSHAREDDEPRECATED extends File

Descriptor of binary data. The record is used internally by LSPS server to store data. Any modification or deletion of BinaryHandle records might render the system unusable.

id : Integer

Unique identifier of the binary data.

description : String

Description of the data.

Time

Represents a time in a day, such as 10:15:30.

A time can optionally define a time zone offset.

Time is represented to millisecond precision.

hour : Integer

The hour.

minute : Integer

The minute.

second : Integer

The second.

millis : Integer

The millisecond.

timeZoneOffset : ZoneOffset

An optional time-zone offset.

ZoneOffsetREAD-ONLY

A time-zone offset from Greenwich/UTC, such as +02:00.

hours : Integer

The time-zone offset hours, from -18 to +18.

minutes : Integer

The time-zone offset minutes, from -59 to +59, sign matches hours and seconds.

seconds : Integer

The time-zone offset seconds, from -59 to +59, sign matches hours and minutes.

RecordProxySetSYSTEM
lazySpreadingProxies(record* : T...) : List<T>

Creates proxies for the record holders. If the record already has proxy in this proxy set it returns the existing proxy. If a new proxy is created it is added to this proxy set. There must be always continuous chain of proxies from level 0 to level n, therefore missing proxies on parent proxy sets are created automatically. On access a property of the proxy, a new proxy is created automaticaly. The new proxy created for a propery is again lazy spreading proxy.

Parameters:

  • record for which proxy is created
lazySpreadingProxy(record* : T) : T

Creates a proxy for the record holder. If the record already has a proxy in this proxy set, it returns the existing proxy. If a new proxy is created, it is added to this proxy set. There always must be a continuous chain of proxies from level 0 to level n;; therefore any proxies missing on parent proxy sets are created automatically. When a proxy property is accessed, a new proxy is created automatically. The new proxy created for a property is a lazy-spreading proxy as well.

Parameters:

  • record for which the proxy is created
merge(checkConflicts* : Boolean) : List<T>

Merges all proxies for the proxy set to their proxied records.

Parameters:

  • checkConflicts If the value is true optimistic lock conflicts are checked. In other case the merge overwrites previous changes.

Returns:

  • list of merged records
proxies(records* : Collection<T>, properties : Property...) : Collection<T>

Creates a proxy on each record holder in the collection. If a record already has its proxy in the proxy set, it uses the existing proxy. If a new proxy is created, it is added to the proxy set. There always must be a continuous chain of proxies from level 0 to level n; therefore proxies missing on the parent proxy sets are created automatically. Proxies are created for all listed property values. The created proxies are added to the proxy set.

Parameters:

  • records collection of records
  • properties list of record's properties

Returns:

  • collection of created proxies
proxies(records* : Collection<T>, properties : List<Property>) : Collection<T>

Creates a proxy on each record holder in the collection. If a record already has its proxy in the proxy set, it uses the existing proxy. If a new proxy is created, it is added to the proxy set. There always must be a continuous chain of proxies from level 0 to level n; therefore any proxies missing on parent proxy sets are created automatically. Proxies are created for all listed property values. The created proxies are added to the proxy set.

Parameters:

  • records collection of records
  • properties list of record's properties

Returns:

  • collection of created proxies
proxy(recordType* : Type<T>) : T

Creates a new proxy of the record type. The new proxy is added to the proxy set.

Parameters:

  • recordType record type for which a new record proxy is created

Returns:

  • created proxy
proxy(record* : T, properties : List<Property>) : T

Creates a proxy for the record holder. If the record already has a proxy in this proxy set, it returns the existing proxy. If a new proxy is created, it is added to this proxy set. There always must be a continuous chain of proxies from level 0 to level n; therefore any proxies missing on parent proxy sets are created automatically. Proxies are created for all listed property values. The created proxies are added to the proxy set.

Parameters:

  • record for which the proxy is created
  • properties properties of the record for which proxies are created
proxy(record* : T, property : Property...) : T

Creates a proxy for the record holder. If the record already has proxy in this proxy set, it returns the existing proxy. If a new proxy is created, it is added to this proxy set. There always must be a continuous chain of proxies from level 0 to level n; therefore any proxies missing on parent proxy sets are created automatically. Proxies are created for all listed property values. The created proxies are added to the proxy set.

Parameters:

  • record for which the proxy is created
  • property properties of the record for which proxies are created
proxyOfProperties(record* : Record, properties : Property...) : void

Creates proxies of the listed property values of the record. The created proxies are added to the proxy set.

If there are no listed properties the action is executed for all properties of the record type.

Parameters:

  • record record for which the proxies of the property values are created
  • properties list of record's properties
SslConfig

Ssl configuration for http calls and webservices. Th e field sslContextProvider provides an instance of com.whitestein.lsps.wsclient.SslContextProvider . Other fields are ignored.

sslContextProvider : Object

An instance of com.whitestein.lsps.wsclient.SslContextProvider.

keyStoreType : String

Type of key store.

keyStoreDataFile : String

Name of the key store data file. It must be accesible as a resource in the custom LSPS Application.

keyStorePassword : String

Key-store password.

keyPassword : String

Key password.

ModelInstanceStartStatus

Start status of model instance

IN_PROGRESS

Model instance is starting

IN_PROGRESS_EXPLICIT_FINISH

Model instance is starting and expects explicit finish

FINISHED

Model instance starting succeeded

FAILED

Starting of model instance failed