Changes

UBIK Enterprise Service

9 bytes added, 07:43, 10 July 2020
By default the WebInterface allows you to enqueue tasks in the same way the command file based interface does described in here: [https://wiki.augmensys.com/index.php?title=UBIK_Enterprise_Service#XML_Command UBIK_Enterprise_Service#XML_Command]. Additionally it implements a new feature, namely the possibility to enqueue a task. A task is an abstract concept and describes something that needs to be done by UBIK. A task must have an entry point which must be a .Net implementation of a method. There are two ways for UBIK to identify a task to executed: Either you provide the full class name (Namespacename.Classname) and the methodname or you provide the full class name make the class implement the UBIK.ServiceTask.TaskExecution.ITask interface. You can also provide parameters to your task. These parameters must be a json serialized string. It is then the responsibility of the implementation of the task itself to deserialize the json string to an object. Finally you will need to tell the EnterpriseService on which database/UBIK project you want it to execute the task on. Overall the parameters to enqueue a task by the WebInterface must be as follows:
<source lang="xmlcsharp">
bool SSPI
string SQLUser
* BaseAddress: This is the base address on which the EnterpriseService hosts its WebInterface. You can find it in the appsettings section (WebInterfacePort & WebInterfaceHost) in the UBIK.EnterpriseService.exe.config file of your EnterpriseService installation path. The default value is http://localhost:9000
* PathToBasicEnterpriseServiceRequestJsonFile: This is a file path to a json file that contains all parameters needed to execute a task. As an example:
<source lang="jsonjavascript">
{
"SSPI": false,
182
edits