@PermitAll public class HumanActionsServiceBean extends com.whitestein.lsps.common.SecureAndLoggingService implements HumanActionsServiceLocal, HumanActionsServiceRemote
Constructor and Description |
---|
HumanActionsServiceBean() |
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.
|
@RightsAllowed(value="ModelInstance:Create") public ModelInstanceInfo createModelInstance(long modelId, StringProperties properties, boolean synchronously) throws ModuleNotFoundException
HumanActionsService
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
.createModelInstance
in interface HumanActionsService
ModuleNotFoundException
- if no model exists for the given model id@RightsAllowed(value="ModelInstance:Create") public void startInterpretModelInstance(long modelInstanceId, boolean synchronously) throws ModelInstanceNotFoundException, InvalidModelInstanceStateException, ErrorException
HumanActionsService
startInterpretModelInstance
in interface HumanActionsService
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.