jBPM 6 で REST API を使用して、プロセスインスタンス変数とそのフィールド値を取得する
Issue
以下の REST API を使用してプロセスインスタンス変数を取得します。
http://localhost:8080/business-central/rest/runtime/com.redhat.jboss.hr:rewards:1.0/withvars/process/instance/6
この応答で変数とそのフィールド値が表示されません。変数とそのフィールド値を取得する必要があります。
応答で詳細な変数が取得されるのではなく、"com.redhat.jboss.hr.rewards.Employee@47c82edb" だけが取得されます。
BPM の応答は以下のようになっています。
{
status:"SUCCESS"
url:"http://localhost:8080/business-central/rest/runtime/com.redhat.jboss.hr:rewards:1.0/withvars/process/instance/6"
variables:{
employee:"com.redhat.jboss.hr.rewards.Employee@47c82edb"
}-
processInstance:{
status: null
url: null
index: null
commandName: null
processId:"rewards.rewards-approval"
id:6
state:1
eventTypes:[0]
}-
}
Environment
- Red Hat JBoss BPM Suite
- 6.0
- 6.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
