Package ch.ivyteam.ivy.process.extension
Interface IUserAsynchronousProcessExtension
-
- All Superinterfaces:
IProcessExtension
- All Known Implementing Classes:
AbstractUserAsynchronousProcessExtension
,Wait
public interface IUserAsynchronousProcessExtension extends IProcessExtension
This interface must be implemented by user process extensions (e.g. Java classes that can be used in PI process elements).
If the program should be configured by the user, there must be a public static inner class called editor implementing the
IProcessExtensionConfigurationEditorEx
interface. The configuration editor must have a public constructor without arguments.Implementors can use the abstract class
AbstractUserProcessExtension
- Since:
- 09.03.2009
- API:
- This is a public API.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UserAsynchronousProcessExtensionResult
performRequest(IRequestId requestId, CompositeObject in, IIvyScriptContext context)
This method is the program performed in an asynchronous process extension element every time a token comes to the process element (request).-
Methods inherited from interface ch.ivyteam.ivy.process.extension.IProcessExtension
abort, getAdditionalLogInfo, release, setConfiguration, start, stop
-
-
-
-
Method Detail
-
performRequest
UserAsynchronousProcessExtensionResult performRequest(IRequestId requestId, CompositeObject in, IIvyScriptContext context) throws Exception
This method is the program performed in an asynchronous process extension element every time a token comes to the process element (request). Note that more than one thread can call this method parallel if more than one request are running through the process extension element. Therefore the bean must be aware of multithreading.- Parameters:
requestId
- the identifier of the requestin
- the current process data. Modify this process data in your implementationcontext
- the context to use to perform the request- Returns:
- the process data that are reinjected to the process. Most implementation simple return the in object
- Throws:
Exception
- if perform fails- API:
- This public API is available in Java.
-
-