getOrCreateEntityState: Gets a state

View source: R/JSON_library.R

getOrCreateEntityStateR Documentation

Gets a state

Description

Gets a state by stateKind if it exists, or creates a new one if not

Usage

getOrCreateEntityState(entity, entityKind, stateType, stateKind, recordedBy,
  lsTransaction,
  lsServerURL = racas::applicationSettings$client.service.persistence.fullpath)

Arguments

entity

an entity object, such as an experiment or analysis group

entityKind

the kind of entity, such as "experiment" or "analysisgroup", see acasEntityHierarchy

stateType

lsType of the state

stateKind

lsKind of the state

recordedBy

the current username

lsTransaction

the id of the transaction

lsServerURL

the url for the roo server

Details

This will fail if the entity has more than one non-ignored state of entered stateKind, as it would be unclear which to update.


mcneilco/racas documentation built on April 19, 2024, 1:12 p.m.