public interface HumanActionsService
Modifier and Type | Method and Description |
---|---|
ModelInstanceInfo |
createModelInstance(long modelId,
StringProperties properties,
boolean synchronously)
Creates new model instance for given model id and properties.
|
void |
startInterpretModelInstance(long modelInstanceId,
boolean synchronously)
Starts the interpretation of an existing model instance for given model instance id.
|
@RequestWrapper(className="com.whitestein.lsps.human.action.CreateModelInstance") @ResponseWrapper(className="com.whitestein.lsps.human.action.CreateModelInstanceResponse") ModelInstanceInfo createModelInstance(long modelId, StringProperties properties, boolean synchronously) throws ModuleNotFoundException
ProcessService.startInterpretModelInstance(long, boolean)
. This can be done either synchronously or
asynchronously. If asynchronously, the returned ModelInstanceInfo
will not contain
the model instance id (the id will be -1).
Id of an initiator of the model instance is added to the model instance properties under the key: Constants.INITIATOR_ID
.modelId
- properties
- synchronously
- ModuleNotFoundException
- if no model exists for the given model id@RequestWrapper(className="com.whitestein.lsps.human.action.StartInterpretModelInstance") @ResponseWrapper(className="com.whitestein.lsps.human.action.StartInterpretModelInstanceResponse") void startInterpretModelInstance(long modelInstanceId, boolean synchronously) throws ModelInstanceNotFoundException, InvalidModelInstanceStateException, ErrorException
modelInstanceId
- synchronously
- ModelInstanceNotFoundException
- if no running model instance exists for the given model instance idInvalidModelInstanceStateException
- if the model instance is finishedErrorException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.