Skip to content

Instantly share code, notes, and snippets.

@cbeer
Created December 15, 2009 21:12
Show Gist options
  • Save cbeer/257307 to your computer and use it in GitHub Desktop.
Save cbeer/257307 to your computer and use it in GitHub Desktop.
<process-definition name="modifyObject">
<if>
<equals field-value="state" other-value="A"></equals>
<sequence>
<participant ref="notify_on_start"></participant>
<participant ref="parse_dam_dump"></participant>
<forget>
<participant ref="log"></participant>
</forget>
<concurrent-iterator on-field="assets" to-field="asset">
<participant ref="create_dam_object"></participant>
</concurrent-iterator>
<participant ref="notify_on_complete"></participant>
</sequence>
</if>
</process-definition>
2009-12-15 16:11:23.198879 20091215-bejuzagotzu ps launch xmlns:fedora-model=info:fedora/fedora-system:def/model#, xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#, xmlns:fedora-rels-ext=info:fedora/fedora-system:def/relations-external#, xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
2009-12-15 16:11:23.257497 20091215-bejuzagotzu wi received 0_0_1_0 notify_on_start
2009-12-15 16:11:23.258243 20091215-bejuzagotzu wi dispatched 0_0_1_0 notify_on_start
2009-12-15 16:11:23.271779 20091215-bejuzagotzu wi received 0_0_1_1 parse_dam_dump
2009-12-15 16:11:23.272647 20091215-bejuzagotzu wi dispatched 0_0_1_1 parse_dam_dump
2009-12-15 16:11:23.283084 20091215-bejuzagotzu wi dispatched 0_0_1_2_0 log
2009-12-15 16:11:23.289220 20091215-bejuzagotzu wi received 0_0_1_4 notify_on_complete
2009-12-15 16:11:23.290232 20091215-bejuzagotzu wi dispatched 0_0_1_4 notify_on_complete
2009-12-15 16:11:23.292659 20091215-bejuzagotzu ps terminated 0
openvault-staging:/home/fedora# cat workflow/work/fs_participants/log__engine_20091215-bejuzagotzu__0_0_1_2_0.yaml
--- !ruby/object:Ruote::Workitem
fei: !ruby/object:Ruote::FlowExpressionId
engine_id: engine
expid: 0_0_1_2_0
wfid: 20091215-bejuzagotzu
fields:
:entity_to_uoi: {}
:type: modifyObject
:dsID: ""
:msg: !ruby/object:Stomp::Message
body: |-
<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:fedora-types="http://www.fedora.info/definitions/1/0/types/">
<id>urn:uuid:bf990772-9036-418f-8e4c-8e9f80d02ceb</id>
<updated>2009-12-15T21:11:22.888Z</updated>
<author>
<name>fedoraAdmin</name>
<uri>http://localhost:8180/fedora</uri>
</author>
<title type="text">modifyObject</title>
<category term="damtest:1" scheme="fedora-types:pid" label="xsd:string"></category>
<category term="A" scheme="fedora-types:state" label="xsd:string"></category>
<category term="" scheme="fedora-types:label" label="xsd:string"></category>
<category term="null" scheme="fedora-types:logMessage" label="xsd:string"></category>
<summary type="text">damtest:1</summary>
<content type="text">2009-12-15T21:11:22.887Z</content>
<category term="32.1" scheme="info:fedora/fedora-system:def/view#version"></category>
<category term="info:fedora/fedora-system:ATOM-APIM-1.0" scheme="http://www.fedora.info/definitions/1/0/types/formatURI"></category>
</entry>
command: MESSAGE
headers:
pid: damtest:1
methodName: modifyObject
expires: "0"
timestamp: "1260911482987"
destination: /topic/fedora.apim.update
message-id: ID:openvault-staging-46827-1260906716612-0:0:1:1:33
priority: "4"
:state: A
:assets:
- |-
<ASSET>
<METADATA>
<UOIS IMPORT_DT="2009-04-07 17:30:42.0" IMPORT_ID="58785.0" IMPORT_USER_ID="21" NAME="....mov" UOI_ID="cb3adf720fb58d59d60422ceaa539acec4f94129" VERSION="1">
[...]
</UOIS>
</METADATA>
<CONTENT/>
</ASSET>
- |-
<ASSET>
<METADATA>
<UOIS IMPORT_DT="2009-04-07 17:44:37.0" IMPORT_ID="58806.0" IMPORT_USER_ID="21" NAME=".....mov" UOI_ID="d176b56f08ef740e73567b88c6193a0503702ca3" VERSION="1">
[...]
</UOIS>
</METADATA>
<CONTENT/>
</ASSET>
- |-
:pid: damtest:1
__result__: true
params:
? !str:RestClient::Response ref
: log
:relationships: []
:repository_uri: http://localhost:8180/fedora
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment