{{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 =====
REQUEST SERVICE RegisterProduct OF Awaresoft
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,
REQUEST SERVICE RegisterProduct OF Awaresoft NOWAIT
The ''VIA'' keyword can be used to indicate specific channel through which the service is requested, for example
REQUEST SERVICE RegisterProduct OF Awaresoft VIA Sockets
If the ''VIA'' keyword is not specified, the default channel of the service provider is used.