You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

OperationDeploying a Rule
URLapi/correlation-engine/v1/rule
MethodPUT
Request
Message TypeJSON String
Message

{

"engineid": "aplus-d",

"content": "template header\n ruleId\n package packageName..."

}

Field Name

Mandatory

Data Type

Default Value

Description

engineidYstring the id of the rule engine which the rule is to be deployed to
contentYstring the content of the rule which should be fully in compliance with the grammatical regulations of Drools
Response
Success Code200
Error Code499
Message on Success

 {

"package": "package0281721",

}

Message on Error

{

"code": 499,

"message": "The detailed error message is displayed here."

}

Field Name

Description

packagethe id of the package returned from the server
codethe error code returned from the server
messagethe detailed message if any error occurs
OperationUndeploying a Rule
URLapi/correlation-engine/v1/rule/{packageId}
MethodDELETE
Request

 


Parameter Name

Mandatory

Data Type

Default Value

Description

packageIdYstring the id of the package
Response
Success Code200
Error Code499
Message on Success

none

Message on Error

{

"code": 499,

"message": "The detailed error message is displayed here."

}

Field Name

Description

codethe error code returned from the server
messagethe detailed message if any error occurs
OperationVerifying a Rule
URLapi/correlation-engine/v1/rule
MethodPOST
Request
Message TypeJSON String
Message

{

"content": "template header\n ruleId\n package packageName..."

}

Field Name

Mandatory

Data Type

Default Value

Description

contentNstring the content of the rule which should be fully in compliance with the grammatical regulations of Drools
Response
Success Code200
Error Code499
Message on Success

none

Message on Error

{

"code": 499,

"message": "The detailed error message is displayed here."

}

Field Name

Description

codethe error code returned from the server
messagethe detailed message if any error occurs
  • No labels