Re: [Hypercontent-users] Further doubts and clarifications needed
Brought to you by:
alexvigdor
From: tom t. <j_l...@ya...> - 2007-02-28 04:31:01
|
Yes now it works, I was trying different combinations earlier on with the AbstractCommand.java now everything works fine. Can I do the same to the changes.xml if I decide to have the change requests functionality. Hope now You can checkin the stuff, Thanks anyway along with this I want to clarify some more doubts 1) in my project definition I have a resource entry to create folder as follows <resource-directory create="manual" label="folder" path="/**/" publish="true"/> 1)While creating the folder how possible it is to create a empty index.xml automatically? What is the directive I should have inside this. 2)In the workflow screen I can see a button called "compact" with a check box, Can you elloborate its functionality, what does this do 3) One of the features which I have not tried so far is change requests procedure, Sometimes I see the change requests sumbit buttons and sometime I dont see them, based on the current HC implementation Can you elaborate the workflow (including who receives emails, which group can intiate the change requests who needs to acknowledge etc) Thanks --- Alex Vigdor <al...@bi...> wrote: > OK, it works for me, so let's review: > > In > org.hypercontent.workflow.command.AbstractCommand.java > line 57 > > else if(Strings.equals(name,"user-full-name")){ > var.set(0,event.getUser().getFullName()); > } > > in approvals.xml save event > <variable name="editor-full-name" > value="${user-full-name}"/> > > And I used for the email body: > <![CDATA[ > <h3>${editor-full-name} (${editor}) requests > approval for > <a href="${abs-server-base}${path}? > mode=interactive&screen=workflow.approvals&work=${work-ticket}">$ > > {path}</a> > </h3> > ]]> > > Finally, the user has filled out the Full Name field > in their > profile. That should be it! You can also check as > the author; after > saving, click "more details" in the workflow screen > and you should > see "editor-full-name" and its value under > Attributes. > > Alex > > On Feb 27, 2007, at 7:25 PM, tom tom wrote: > > > Hi Alex, > > I tried it out, here what happened. > > > > I changed the approvals.xml > > > > > > <event name="save" permissions="!approve"> > > <variable name="editor" value="${actor}"/> > > <variable name="edition" value="${edition}"/> > > <variable name="href" > > > value="${abs-server-base}${output-path}?edition=${edition}"/> > > <variable name="editor-full-name" > > value="${user-full-name}"/> > > <nq who="${editor}"/> > > <nq where="${path}"/> > > <nq q="saved"/> > > <redirect > > location="${abs-server-base}${path}? > > mode=interactive&screen=workflow.approvals"/> > > </event > > > > Then I used the ${editor-full-name} in the > > request-approval event as part of the email body, > > > > but it does not print the variable name instead it > > prints > > user-full-name > > > > The user has given his full-name in his profile > but > > this has not been picked by the ${user-full-name} > > variable. > > > > > > > > Thanks, > > > > > > > > > > > > > > > > > > --- Alex Vigdor <al...@bi...> wrote: > > > >> After looking at this a little more closely, > here's > >> my recommendation: > >> > >> 1) You must save the editor's full name in a > >> variable during the save > >> event > >> > >> <event name="save" permissions="!approve"> > >> <variable name="editor" value="${actor}"/> > >> <variable name="editor-full-name" > >> value="${user-full-name}"/> > >> ... > >> > >> 2) Then refer to your declared variable in the > later > >> reminder events > >> > >> <event name="email-reminder" when="in 24 hours > *"> > >> <email who="group:approvers" > >> subject="[HyperContent]: Reminder - > >> Approval requested" content-type="text/html"> > >> <![CDATA[ > >> <h3>${editor-full-name} requested approval > for > >> ... > >> > >> Let me know if that helps! > >> > >> Alex > >> > >> On Feb 25, 2007, at 10:49 PM, tom tom wrote: > >> > >>> Full Name and email address both are not empty. > >>> > >>> Still the problem exists. > >>> > >>> let me know if it works in ur enviornment. > >>> > >>> > >>> Thanks, > >>> --- Alex Vigdor <al...@bi...> wrote: > >>> > >>>> Make sure that in the user profile, the "Full > >> Name" > >>>> field is > >>>> completed. The full name is taken from the > >> longer > >>>> full name field at > >>>> the top, is not reconstructed from the given > name > >>>> and family name > >>>> fields. Perhaps that's the problem? > >>>> > >>>> Cheers, > >>>> Alex > >>>> > >>>> On Feb 22, 2007, at 11:09 PM, tom tom wrote: > >>>> > >>>>> Hi Alex, > >>>>> I started with the item 3 that is > approvals.xml > >>>> fix. > >>>>> > >>>>> > >>>>> I incooperate your change as follows > >>>>> ... > >>>>> .... > >>>>> if(var.size()>=1){ > >>>>> String name = var.item(0); > >>>>> > >>>> if(Strings.equals(name,"actor") || > >>>>> Strings.equals(name,"user")){ > >>>>> > >>>>> > >>>> > >>> > >> > > > var.set(0,Session.getUser(event.getSubject()).getName()); > >>>>> }else if > >>>>> (Strings.equals(name,"user-full-name")){ > >>>>> > >>>>> > >>>>> var.set(0,event.getUser().getFullName()); > >>>>> > >>>>> } > >>>>> > >>>>> ..... > >>>>> .... > >>>>> > >>>>> but it didnt work, if always go to the first > >> block > >>>>> which is if(Strings.equals(name,"actor") || > >>>>> Strings.equals(name,"user")) > >>>>> > >>>>> Then what I did was inside this block instead > of > >>>>> > >>>>> > >>>> > >>> > >> > > > var.set(0,Session.getUser(event.getSubject()).getName()); > >>>>> > >>>>> I changed it to > >>>>> > >>>>> > >>>> > >>> > >> > > > var.set(0,Session.getUser(event.getSubject()).getFullName()); > >>>>> > === message truncated === ____________________________________________________________________________________ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com |