@StableMinor(version="12.3", sinceVersion="7.1") public interface IInteractiveProcessManager
portal interactive processes
.Modifier and Type | Method and Description |
---|---|
IProcess |
createProcess(String title,
List<Step> steps,
IProcessCallbackHandler callbackHandler)
Creates a
portal interactive process with the given
steps . |
IProcess |
getProcess(String processId,
String owner)
Returns the process of the given identifier.
The parameter processId is required. |
String |
submitProcess(IProcess process)
Submits a process created with
#createProcess(String, List) . |
String |
takeOwnership(String processId)
Takes the ownership of the process with the given identifier.
|
IProcess createProcess(String title, List<Step> steps, IProcessCallbackHandler callbackHandler) throws PortalException
portal interactive process
with the given
steps
. The steps order will be kept unchanged of the one
existent in the given list. The created process is not yet ready
to be executed. Indeed, it is not persisted yet. After the process object
is created, it must be passed to #submitProcess(Process)
in order to be
used.
Returns the created process object.title
- The process title.steps
- The steps that compose the process.callbackHandler
- The callback handler for the created process. May be
null
.IllegalArgumentException
- if the title is null
.IllegalArgumentException
- if the title is empty.IllegalArgumentException
- if the step list is null
.IllegalArgumentException
- if the step list is empty.IllegalArgumentException
- if the step list has one or more steps without an
executable
.PortalException
String submitProcess(IProcess process) throws PortalException
#createProcess(String, List)
.
After the process is added it is ready to be executed.process
- the process object.PortalException
IProcess getProcess(String processId, String owner) throws PortalException
processId
is required. It represents the identifier
of the process that is requested to be obtained. When it is not provided
(if it is null
or empty) an IllegalArgumentException
is
raised. If there's no process with the given identifier a
PortalObjectNotFoundException
will be raised.owner
may not be null
. It represents the
identifier of the owner of the process. When it is not provided (if it is
null
or empty) an IllegalArgumentException
is raised.
If the requested process already has an owner and it is the same as the
one provided, the process is returned.
If the requested process already has an owner and it is not the same as
the one provided or if the process has no owner, a
ProcessNotOwnedException
is raised.
processId
- the process identifier.owner
- the owner identifier.IllegalArgumentException
- if the parameter owner
is null
.IllegalArgumentException
- if the parameter processId
is null
.PortalObjectNotFoundException
- if the requested process does not exists.ProcessNotOwnedException
- if the given process does not belong to the given owner or if
the process has no owner.PortalException
- if other error occur.String takeOwnership(String processId) throws PortalException
session
as being the user that owns the process.processId
- the process identifier.IllegalArgumentException
- if the processId is null
or empty.PortalObjectNotFoundException
- if the given process does not exist.IllegalStateException
- if there's no current user session.PortalException
- if some other error occur.LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.