Custom Service Adapters
Custom service adapters allow you to implement your own business logic using a .NET DLL. This will allow you to e.g. connect to external data sources and service or provide calculations that would be hard to develop using XLST.In order to use a custom service adapter, you need to:
- Develop and compile a .NET service agent DLL
- Register your library under Business Logic / Services in ORIGAM Architect
You can also create you custom XSL and XPath functions that will be accessible within your own namespace.
Registering In Model
After you develop the dll, you need to register it in ORIGAM model. You do this by adding an item in Business Logic > Services.
- Add a new Service element and name it
- Fill in the the Classpath attribute with the full namespace and an assembly name, delimited by comma. E.g.
- Save the service and add methods under the service.
- Under each method you also need to specify its parameters.
In case of an error the method should throw a standard .NET exception. In case of an exception the workflow will finish, data changes under transaction will be rolled back and rollback part of the workflow will be called eventually.
#TODO_FILE:9699477#Example C# project
#TODO_FILE:10453000#Example C# project with exposing XSL functions to be used in XSL and XPath