Jump to: navigation, search

Changes


UBIK Enterprise Service

1,312 bytes added, 08:14, 11 July 2013
/* Command file */
<Commands>
<Interface FullName="UBIK.TEST, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" File="F:\Test\UBIK.TEST.dll" Class="UBIK.TestInterface" Direction="E">
<Parameter Key="Server" Value="AUGLNZ0SQL" />
<Parameter Key="InitialCatalog" Value="UBIK.Sandbox.Dev.V2" />
<Parameter Key="UserID" Value="sa" />
<Parameter Key="Password" Value="secretpassword123" />
<Parameter Key="RecordLifeTime" Value="-1" />
<Parameter Key="MyIFNeedsThis" Value="TestValue" />
</Interface>
</Commands>
</source>
This command file would attempt to instantiate the class ''UBIK.TestInterface '' from the assembly ''F:\Test\UBIK.TEST.dll''. If connection succeeds, it will then invoke the the methods of the export interface, because of the setting ''Direction="E"''. A sample command file for starting a workflow looks slightly different: <source lang="xml"><InterfaceManager> <Commands> <Workflow Name="WF_XML_TEST" UID="5fdccb8c-85db-4dfc-861a-57be38267bfb" Async="False"> <Parameter Key="Server" Value="AUGLNZ0SQL" /> <Parameter Key="InitialCatalog" Value="UBIK.Sandbox.Dev.V2" /> <Parameter Key="UserID" Value="sa" /> <Parameter Key="Password" Value="secretpassword123" /> <Parameter Key="RecordLifeTime" Value="-1" /> <Parameter Key="MyWorkflowNeedsThis" Value="TestValue" /> </Workflow> </Commands></InterfaceManager></source> This command file would attempt to load the workflow object with the Guid ''5fdccb8c-85db-4dfc-861a-57be38267bfb'' and invoke it synchronously, because of the setting ''Async="False"''. Such files can of course be created and edited manually, but they can also be created using the [[Interface Manager]].