> -----Original Message-----
> From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
> Behalf Of Raphael Ritz
>
> Andrew D. Fields wrote:
>
> [..]
>
> > I realize this crosses both GenericSetup as well as ArchGenXML but I
> > can't fix ArchGenXML's output until I know what GenericSetup expects
> > as input.
> >
>
> While I don't know the answer to your concrete questions here is
something
> you could try:
>
> Create your workflow TTW in ZMI (or one with a similar worklist at
least) and
> then export the workflow tool using portal_setup.
> That way, you can inspect the XML that GS produces itself.
> Then try whether you can (re)import that (GS should be round-trip safe
but
> you never know - I recall having had an issue a while back with guard
> conditions).
Raphael,
I did try that, and it produced something which looks nothing like what
ArchGenXML produced.
Here is a snippet. (the CDATA down below is where I can see it defines
the actionURL)
<record id="28280" aka="AAAAAAAAbng=">
<pickle>
<tuple id="28280.2">
<global id="28280.1" name="WorklistDefinition"
module="Products.DCWorkflow.Worklists"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary id="28280.3">
<item>
<key> <string id="28280.4"
encoding="repr">description</string> </key>
<value> <string encoding="repr"></string> </value>
</item>
<item>
<key> <string id="28280.5"
encoding="repr">var_matches</string> </key>
<value>
<persistent> <string id="28280.6"
encoding="base64">AAAAAAAAe3o=</string> </persistent>
</value>
</item>
<item>
<key> <string id="28280.7"
encoding="repr">actbox_category</string> </key>
<value> <string id="28280.8" encoding="repr">global</string>
</value>
</item>
<item>
<key> <string id="28280.9" encoding="repr">guard</string>
</key>
<value>
<persistent> <string id="28280.10"
encoding="base64">AAAAAAAAi3s=</string> </persistent>
</value>
</item>
<item>
<key> <string id="28280.11"
encoding="repr">actbox_name</string> </key>
<value> <string id="28280.12" encoding="repr">Pending
reviewer_queue</string> </value>
</item>
<item>
<key> <string id="28280.13"
encoding="repr">__ac_local_roles__</string> </key>
<value>
<dictionary id="28280.14">
<item>
<key> <string id="28280.15"
encoding="repr">admin</string> </key>
<value>
<list id="28280.16">
<string id="28280.17"
encoding="repr">Owner</string>
</list>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string id="28280.18" encoding="repr">id</string>
</key>
<value> <string id="28280.19"
encoding="repr">reviewer_queue</string> </value>
</item>
<item>
<key> <string id="28280.20"
encoding="repr">actbox_url</string> </key>
<value> <string id="28280.21" encoding="cdata"><![CDATA[
%(portal_url)s/search?review_state=pending_prepwork&review_state=pending
_maint&review_state=pending_cleaning&review_state=pending_condition_revi
ew&review_state=appreview_hold
]]></string> </value>
</item>
</dictionary>
</pickle>
</record>
Here is a snippet of where it defines the "Cataloged variable matches":
(at least that is what I *think* it is. This export format is
substantially more complicated than the "import" format :) )
<record id="31610" aka="AAAAAAAAe3o=">
<pickle>
<tuple id="31610.2">
<global id="31610.1" name="PersistentMapping"
module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary id="31610.3">
<item>
<key> <string id="31610.4" encoding="repr">data</string>
</key>
<value>
<dictionary id="31610.5">
<item>
<key> <string id="31610.6"
encoding="repr">review_state</string> </key>
<value>
<tuple id="31610.12">
<string id="31610.7"
encoding="repr">pending_prepwork</string>
<string id="31610.8"
encoding="repr">pending_maint</string>
<string id="31610.9"
encoding="repr">pending_cleaning</string>
<string id="31610.10"
encoding="repr">pending_condition_review</string>
<string id="31610.11"
encoding="repr">appreview_hold</string>
</tuple>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
So how is it that ArchGenXML can create a "workflows.xml" and a
"definition.xml" file and it looks totally different from the one that I
exported using the DCWorkflow tool?
Where is the format spec to indicate *how* I am to create a proper
"definition.xml" file? If I had that, I could do what I need.
Alternatively, what piece of code is it that reads the "definition.xml"?
If I could find that, I could read that source and then figure out what
the spec is.
Thanks.
--- Best Regards,
Andrew D. Fields
>
> HTH,
>
> Raphael
>
> >
> >
> > Plone 3.0.3
> >
> > --- Best Regards,
> >
> > *Andrew D. Fields
> > *American Village Corp.
> >
> > [EMAIL PROTECTED]
> > V: 503.362.0005 x102
> > F: 503.362.0007
> > 7585 State St. - Salem, OR - 97317
> >
> >
> >
>
>
> _______________________________________________
> Setup mailing list
> [email protected]
> http://lists.plone.org/mailman/listinfo/setup
_______________________________________________
Setup mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/setup