Page History
Kullanıcı tanımlı iş kuralları, uygulamanın REST API'si üzerinden işletilebilir.
Bu amaçla ExecuteRule metodu kullanılır. Metod POST yöntemiyle çağrılır. İsteğin içerik bölümüne işletilecek kuralın adı (ruleName) ve işletilecek scripte gönderilecek parametreler (DATA) JSON biçiminde tanımlanır.
Metoda gönderilen DATA nesnesi, sonuç olarak da geriye döner. İşletilen scriptin içinde DATA nesnesine bilgi kaydedilebilir.
Kullanım şekli: http://SUNUCU ADRESİ:UYGULAMA REST BAĞLANTI NOKTASIUser-defined business rules can be executed via the REST API of the application.
The ExecuteRule method is used to execute these rules. The method is called by the POST method. The name of the rule (ruleName) to be executed and the parameters (DATA) to be sent to the script to be executed are defined in JSON format in the content section of the request.
The DATA object sent to the method also returns as a result. Information can be saved to the DATA object in the executed script.
Usage: http://SERVER ADDRESS:APPLICATION REST PORT/api/script/executerule
ÖrnekExample: http://localhost:4567/api/script/executeruleİstek İçeriği
Request Content
ruleName = test
data={"kodcode":"001"}
İşletilecek kuralın kodu
REST API'nin çalışır durumda olduğunu kontrol etmek için alttaki metod GET yöntemiyle çağrılabilir
The code of the rule to be executed
The following method can be called with the GET method to check whether the REST API is running.
http://adresaddress:bağlantı noktasıport/api/health/Check