Skip to content

Instantly share code, notes, and snippets.

@evacchi
Created June 6, 2019 15:16
Show Gist options
  • Save evacchi/72e97f92f7c46337b81a4a40351d756b to your computer and use it in GitHub Desktop.
Save evacchi/72e97f92f7c46337b81a4a40351d756b to your computer and use it in GitHub Desktop.
kie server
curl -X POST -H 'X-KIE-ContentType: JSON' -H 'Content-type: application/json' -u 'wbadmin:wbadmin' --data @data.json http://localhost:8080/kie-server/services/rest/server/containers/instances/example_1.0.0-SNAPSHOT
{
"commands":[
{
"insert":{
"object":{
"com.myspace.example.Person":{
"name":"john",
"age":25
}
}
}
},
{
"fire-all-rules": {
"max": -1,
"out-identifier": "fired"
}
},
{
"get-objects": {
"out-identifier": "facts"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment