8.3.2 Example
Here is an example query expressed as XML, to be submitted via the HTTP API:
<?xml version="1.0"?>
<query xmlns="http://outerx.org/daisy/1.0#workflow">
<selectClause>
<select name="process.id" type="property"/>
<select name="process.definitionLabel" type="property"/>
<select name="daisy_description" type="process_variable"/>
</selectClause>
<conditions meetAllCriteria="true">
<propertyCondition name="process.end"
operator="is_null"
valueType="datetime"/>
</conditions>
<orderByClause>
<orderBy name="process.id" type="property" sortOrder="descending"/>
</orderByClause>
</query>
You can try it out using a tool such as wget. Save the query to a file (e.g. querytest.xml), and then post it to the repository using:
wget --post-file="querytest.xml"
--http-user=testuser
--http-password=testuser
--header="Content-Type: text/xml"
"http://localhost:9263/workflow/query/process?locale=en-US"
(everything should be on one line, adjust username, password, repository URL as necessary)
Previous