Class SynchronousActivityStartingWebService
- java.lang.Object
-
- de.aristaflow.ilm.ws.base.service.AbstractSubResourceWebService<SynchronousActivityStarting>
-
- de.aristaflow.ilm.ws.core.runtimemanager.SynchronousActivityStartingWebService
-
public class SynchronousActivityStartingWebService extends AbstractSubResourceWebService<SynchronousActivityStarting>
- See Also:
SynchronousActivityStarting
-
-
Field Summary
Fields Modifier and Type Field Description protected LocalActivityStateNotifier
lasn
protected ConcurrentMap<EBPInstanceReference,ActivityStateNotificationWrapper>
listeners
The map containing all registered activity state listeners (viaActivityStateCallback
).protected ProcessModelFactory
pmf
-
Constructor Summary
Constructors Constructor Description SynchronousActivityStartingWebService(SynchronousActivityStarting service, AbstractSubResourceWebService<?> parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull @Valid GuiContext
resumeActivity(@NotNull @Valid SessionToken session, @NotNull @Valid EbpInstanceReference activity, ActivityStateCallback callback)
@NotNull @Valid GuiContext
startActivity(@NotNull @Valid SessionToken session, @NotNull @Valid EbpInstanceReference activity, ProcessConstants.ExecutionMode executionMode, ActivityStateCallback callback)
void
unregisterActivityStateListener(@NotNull @Valid SessionToken session, @NotNull @Valid EbpInstanceReference activity)
protected URI[]
wrap(SessionToken session, EBPInstanceReference jActivity, ActivityStateCallback callback, boolean resume)
-
Methods inherited from class de.aristaflow.ilm.ws.base.service.AbstractSubResourceWebService
getLogger, getLogService, getService, getServiceMetaData, getServiceUris, getSessionFactory, shutdown
-
-
-
-
Field Detail
-
pmf
protected final ProcessModelFactory pmf
-
lasn
protected final LocalActivityStateNotifier lasn
-
listeners
protected final ConcurrentMap<EBPInstanceReference,ActivityStateNotificationWrapper> listeners
The map containing all registered activity state listeners (viaActivityStateCallback
). This has to be indexed byEBPInstanceReference
instead ofEbpInstanceReference
due to the equality having to ignore the runtime manager URI.
-
-
Constructor Detail
-
SynchronousActivityStartingWebService
public SynchronousActivityStartingWebService(SynchronousActivityStarting service, AbstractSubResourceWebService<?> parent) throws ServiceNotKnownException
- Throws:
ServiceNotKnownException
-
-
Method Detail
-
startActivity
@NotNull @Valid public @NotNull @Valid GuiContext startActivity(@NotNull @Valid @NotNull @Valid SessionToken session, @NotNull @Valid @NotNull @Valid EbpInstanceReference activity, ProcessConstants.ExecutionMode executionMode, ActivityStateCallback callback) throws ParameterException, InvalidActivityStateException, InvalidInstanceStateException, AgentUnknownException, WrongAgentException, WrongRuntimeManagerException, IncompatibleGuiContextException, InvalidDataContainerException
- Throws:
ParameterException
InvalidActivityStateException
InvalidInstanceStateException
AgentUnknownException
WrongAgentException
WrongRuntimeManagerException
IncompatibleGuiContextException
InvalidDataContainerException
- See Also:
SynchronousActivityStarting.startActivitySynchronously(de.aristaflow.adept2.base.sessionmanagement.SessionToken, EBPInstanceReference, ExecutionMode, URI[])
-
resumeActivity
@NotNull @Valid public @NotNull @Valid GuiContext resumeActivity(@NotNull @Valid @NotNull @Valid SessionToken session, @NotNull @Valid @NotNull @Valid EbpInstanceReference activity, ActivityStateCallback callback) throws ParameterException, InvalidActivityStateException, InvalidInstanceStateException, WrongAgentException, AgentUnknownException, WrongRuntimeManagerException, IncompatibleGuiContextException, InvalidDataContainerException
- Throws:
ParameterException
InvalidActivityStateException
InvalidInstanceStateException
WrongAgentException
AgentUnknownException
WrongRuntimeManagerException
IncompatibleGuiContextException
InvalidDataContainerException
- See Also:
SynchronousActivityStarting.resumeActivitySynchronously(de.aristaflow.adept2.base.sessionmanagement.SessionToken, EBPInstanceReference)
,SynchronousActivityStarting.resumeActivitySynchronously(de.aristaflow.adept2.base.sessionmanagement.SessionToken, EBPInstanceReference, URI[])
-
unregisterActivityStateListener
public void unregisterActivityStateListener(@NotNull @Valid @NotNull @Valid SessionToken session, @NotNull @Valid @NotNull @Valid EbpInstanceReference activity) throws ParameterException
-
wrap
protected URI[] wrap(SessionToken session, EBPInstanceReference jActivity, ActivityStateCallback callback, boolean resume)
-
-