Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
a_f:a:request_service [2022/09/01 01:23] – removed - external edit (Unknown date) 127.0.0.1a_f:a:request_service [2023/05/09 01:45] (current) sean
Line 1: Line 1:
 +{{tag>Index Action Action_List Process Sevices}}
 +====== REQUEST SERVICE ======
  
 +This action makes it possible to use a service of an intelligent business object. 
 +
 +===== Syntax =====
 +
 +''REQUEST SERVICE'' Id() ''OF'' AttributeIdentifier()[ ''VIA'' ChannelName]
 +
 +where Id() indicates the name of the service and AttributeIdentifier indicates the business object which provides the service. 
 +
 +===== Example =====
 +
 +<code aim>REQUEST SERVICE RegisterProduct OF Awaresoft
 +</code>
 +
 +It is possible to indicate that the service should be run asynchronously – that is, if a system is executing an ordered collection of rules, one of which calls the service asynchronously, the next rule will execute immediately without waiting for the service to finish. To indicate that the service should run asynchronously, add ''NOWAIT'' keyword after the service. For example,
 +<code aim>REQUEST SERVICE RegisterProduct OF Awaresoft NOWAIT </code>
 +
 +
 +The ''VIA'' keyword can be used to indicate specific channel through which the service is requested, for example
 +<code aim>REQUEST SERVICE RegisterProduct OF Awaresoft VIA Sockets </code>
 +
 +If the ''VIA'' keyword is not specified, the default channel of the service provider is used.