[Zope-CMF] RE: DCWorkflow Question

Walker, Byl BWalker@ProspectAssoc.com
Mon, 11 Feb 2002 13:33:48 -0500


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C1B32A.A5381940
Content-Type: text/plain

Shane--

That worked like a charm!!  Thank you so much for the help.

Byl

-----Original Message-----
From: Shane Hathaway [mailto:shane@zope.com] 
Sent: Monday, February 11, 2002 1:28 PM
To: Walker, Byl
Cc: zope-cmf@zope.org
Subject: Re: DCWorkflow Question

Walker, Byl wrote:
> I hate to send this to you directly, but I'm hoping you might be able to 
> help me out.  I'm having a problem with DC workflow: specifically I keep 
> getting the error:
> 
> Error Type: Undefined
> Error Value: "getId" not found in "transition/getId"

There are three things happening here.

1) TALES expressions have a habit of swallowing the important bit of 
tracebacks.  The next release of Zope should help.

2) On creation of an object, an implicit transition puts the object in 
the initial state.  The transition that occurs at this time is "None".

3) The default workflows provided by DCWorkflow once used the expression 
"transition/getId" instead of "transition/getId|nothing".  (My bad.) 
Although you upgraded the software, you still have a workflow definition 
created by the old code and the instance can't be upgraded automatically.

So the solution is easy: just change the expression for the "action" 
variable from "transition/getId" to "transition/getId|nothing".

I hope you don't mind I CC'd the list. :-)

Shane

------_=_NextPart_001_01C1B32A.A5381940
Content-Type: text/html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: DCWorkflow Question</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Shane--</FONT>
</P>

<P><FONT SIZE=2>That worked like a charm!!&nbsp; Thank you so much for the help.</FONT>
</P>

<P><FONT SIZE=2>Byl</FONT>
</P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Shane Hathaway [<A HREF="mailto:shane@zope.com">mailto:shane@zope.com</A>] </FONT>
<BR><FONT SIZE=2>Sent: Monday, February 11, 2002 1:28 PM</FONT>
<BR><FONT SIZE=2>To: Walker, Byl</FONT>
<BR><FONT SIZE=2>Cc: zope-cmf@zope.org</FONT>
<BR><FONT SIZE=2>Subject: Re: DCWorkflow Question</FONT>
</P>

<P><FONT SIZE=2>Walker, Byl wrote:</FONT>
<BR><FONT SIZE=2>&gt; I hate to send this to you directly, but I'm hoping you might be able to </FONT>
<BR><FONT SIZE=2>&gt; help me out.&nbsp; I'm having a problem with DC workflow: specifically I keep </FONT>
<BR><FONT SIZE=2>&gt; getting the error:</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; Error Type: Undefined</FONT>
<BR><FONT SIZE=2>&gt; Error Value: &quot;getId&quot; not found in &quot;transition/getId&quot;</FONT>
</P>

<P><FONT SIZE=2>There are three things happening here.</FONT>
</P>

<P><FONT SIZE=2>1) TALES expressions have a habit of swallowing the important bit of </FONT>
<BR><FONT SIZE=2>tracebacks.&nbsp; The next release of Zope should help.</FONT>
</P>

<P><FONT SIZE=2>2) On creation of an object, an implicit transition puts the object in </FONT>
<BR><FONT SIZE=2>the initial state.&nbsp; The transition that occurs at this time is &quot;None&quot;.</FONT>
</P>

<P><FONT SIZE=2>3) The default workflows provided by DCWorkflow once used the expression </FONT>
<BR><FONT SIZE=2>&quot;transition/getId&quot; instead of &quot;transition/getId|nothing&quot;.&nbsp; (My bad.) </FONT>
<BR><FONT SIZE=2>Although you upgraded the software, you still have a workflow definition </FONT>
<BR><FONT SIZE=2>created by the old code and the instance can't be upgraded automatically.</FONT>
</P>

<P><FONT SIZE=2>So the solution is easy: just change the expression for the &quot;action&quot; </FONT>
<BR><FONT SIZE=2>variable from &quot;transition/getId&quot; to &quot;transition/getId|nothing&quot;.</FONT>
</P>

<P><FONT SIZE=2>I hope you don't mind I CC'd the list. :-)</FONT>
</P>

<P><FONT SIZE=2>Shane</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C1B32A.A5381940--