hypercontent-users Mailing List for HyperContent (Page 10)
Brought to you by:
alexvigdor
You can subscribe to this list here.
2004 |
Jan
|
Feb
(4) |
Mar
(6) |
Apr
(4) |
May
(3) |
Jun
(1) |
Jul
(7) |
Aug
(4) |
Sep
(31) |
Oct
(11) |
Nov
(30) |
Dec
(22) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(23) |
Feb
(11) |
Mar
(22) |
Apr
(13) |
May
(31) |
Jun
(27) |
Jul
(32) |
Aug
(4) |
Sep
(25) |
Oct
(21) |
Nov
(31) |
Dec
(28) |
2006 |
Jan
(14) |
Feb
(12) |
Mar
(17) |
Apr
(21) |
May
(6) |
Jun
(4) |
Jul
(26) |
Aug
(24) |
Sep
(19) |
Oct
(24) |
Nov
(34) |
Dec
(17) |
2007 |
Jan
(10) |
Feb
(43) |
Mar
(60) |
Apr
(10) |
May
(20) |
Jun
(2) |
Jul
(17) |
Aug
(38) |
Sep
(45) |
Oct
(5) |
Nov
(4) |
Dec
(5) |
2008 |
Jan
|
Feb
(1) |
Mar
|
Apr
(10) |
May
(2) |
Jun
(2) |
Jul
|
Aug
(4) |
Sep
(1) |
Oct
(5) |
Nov
(1) |
Dec
(1) |
2009 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Carl B. <C.P...@hu...> - 2007-03-07 14:33:13
|
***************************************************************************************** To view the terms under which this email is distributed, please go to http://www.hull.ac.uk/legal/email_disclaimer.html ***************************************************************************************** |
From: Alex V. <al...@bi...> - 2007-03-07 13:36:36
|
On Mar 6, 2007, at 11:42 PM, tom tom wrote: > Hi, > In the worflow screens I want to change the names for > Build, Build all and View Build, > > I can see the screen names in workflow.properties but > cant figure it out which vm will have these constants > in the screens folder. The workflow screens are generated by /screens/workflow.vm. You won't find literal references to the constants there, however; the constant keys are mapped to workflow script names and event names defined in the scripts. workflow.vm gathers information about what scripts and events are active from the underlying java APIs. > > Also I want to open the View Build screen in a > seperate Window instead of the same window. Which vm > file should I look into. View Built currently uses an HTTP redirect, which can't be pointed at a separate window. One thing to consider is pointing the redirect to a page with javascript that will pop open a new window, then redirect the existing window back to HC. Cheers, Alex |
From: Alex V. <al...@bi...> - 2007-03-07 13:28:49
|
If you just want an index in a new folder, you should have the user =20 create an instance of a doctype "/**/index.xml". This will =20 automatically create the enclosing folder. You can even label the =20 index doctype "Folder" if you feel it is more clear. Alex On Mar 6, 2007, at 10:20 PM, tom tom wrote: > >> To automatically have an index file created inside >> every directory, >> you could use create=3D"auto" with your index doctype, >> e.g. >> >> <xml-doctype path=3D"/**/index.xml" create=3D"auto" ... > > What I want is not to create index file in every > directory but only in the new folder being created. > Above will create index.xml in each folder. > > I allready go the xml-doctype as follows in my project > definition > > <xml-doctype create=3D"manual" definition=3D"" > label=3D"Page" path=3D"/**/*.xml" root=3D"html"> > =E2=88=92 > <output basedir=3D"/plain/" content-type=3D"text/html"> > =E2=88=92 > <transform source=3D"/config/skins/plain/common.xsl"> > <with-param name=3D"link-base" value=3D"/plain"/> > </transform> > </output> > </xml-doctype> > > > Thanks > > > > > ______________________________________________________________________=20= > ______________ > It's here! Your new message! > Get new email alerts with the free Yahoo! Toolbar. > http://tools.search.yahoo.com/toolbar/features/mail/ > |
From: Alex V. <al...@bi...> - 2007-03-07 13:26:30
|
Zip is only bound to directories, not files. You can change this in / config/workflow/zip.xml by changing the binding to /**/,/**/* Alex On Mar 6, 2007, at 8:50 PM, tom tom wrote: > Hi, > > I observed that Zip I/O section (workflow screen) > where we download the project as a zip file is not > appearing sometimes, but sometimes it appears, > > What is the reason for this inconsistent behaviour, > how can we make it consistent. > > Thanks > > --- Alex Vigdor <al...@bi...> wrote: > >> Make sure your approver group actually has approve >> permission in >> permissions.xml, e.g. >> >> <permission activity="approve" >> principal="group:approvers" target="/ >> **/*.*"/> >> >> You also must go to the workflow tab for a file - >> change request is >> not available at the directory level. If you would >> like it to be >> available at the directory level, add a binding to >> the workflow tag >> in /config/workflow/changes.xml >> >> <workflow binding="/**/,/**/*.*"> >> >> >> Alex >> >> On Feb 28, 2007, at 8:27 PM, tom tom wrote: >> >>> Hi, >>> >>> Just want to know little bit more on the >> following. >>> >>> >>>> The change script allows someone with approve >>>> permission to assign a >>>> change request to a member of group:authors. >> Both >>>> the approver and >>>> the author receive the email. When the author >>>> submits the changes, >>>> the approver receives an email, and can either >>>> re-assign the change >>>> or close out the work. >>> >>> >>> I got 4 distinct users each user belongs to one >> group >>> only. >>> >>> one Author, One Approver, One Publisher and One >>> Administrator. According to your explanation if >>> Approver login to the system and visits Workflow >>> section he/she should have the change requests >>> interfaces, but I cant see any of that sort. >>> >>> I cant see any change requests items in the >> workflow >>> screen for the approver. >>> >>> Thanks >>> >>> >>> >>> >>> >> > ______________________________________________________________________ >> >>> ______________ >>> Need Mail bonding? >>> Go to the Yahoo! Mail Q&A for great tips from >> Yahoo! Answers users. >>> >> > http://answers.yahoo.com/dir/?link=list&sid=396546091 >>> >> >> >> > ---------------------------------------------------------------------- > --- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get >> the chance to share your >> opinions on IT & business topics through brief >> surveys-and earn cash >> > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> Hypercontent-users mailing list >> Hyp...@li... >> > https://lists.sourceforge.net/lists/listinfo/hypercontent-users >> > > > > > ______________________________________________________________________ > ______________ > Finding fabulous fares is fun. > Let Yahoo! FareChase search your favorite travel sites to find > flight and hotel bargains. > http://farechase.yahoo.com/promo-generic-14795097 > |
From: tom t. <j_l...@ya...> - 2007-03-07 04:43:04
|
Hi, In the worflow screens I want to change the names for Build, Build all and View Build, I can see the screen names in workflow.properties but cant figure it out which vm will have these constants in the screens folder. Also I want to open the View Build screen in a seperate Window instead of the same window. Which vm file should I look into. Thanks ____________________________________________________________________________________ We won't tell. Get more on shows you hate to love (and love to hate): Yahoo! TV's Guilty Pleasures list. http://tv.yahoo.com/collections/265 |
From: tom t. <j_l...@ya...> - 2007-03-07 03:20:36
|
> To automatically have an index file created inside > every directory, > you could use create="auto" with your index doctype, > e.g. > > <xml-doctype path="/**/index.xml" create="auto" ... What I want is not to create index file in every directory but only in the new folder being created. Above will create index.xml in each folder. I allready go the xml-doctype as follows in my project definition <xml-doctype create="manual" definition="" label="Page" path="/**/*.xml" root="html"> â <output basedir="/plain/" content-type="text/html"> â <transform source="/config/skins/plain/common.xsl"> <with-param name="link-base" value="/plain"/> </transform> </output> </xml-doctype> Thanks ____________________________________________________________________________________ It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar. http://tools.search.yahoo.com/toolbar/features/mail/ |
From: tom t. <j_l...@ya...> - 2007-03-07 01:50:55
|
Hi, I observed that Zip I/O section (workflow screen) where we download the project as a zip file is not appearing sometimes, but sometimes it appears, What is the reason for this inconsistent behaviour, how can we make it consistent. Thanks --- Alex Vigdor <al...@bi...> wrote: > Make sure your approver group actually has approve > permission in > permissions.xml, e.g. > > <permission activity="approve" > principal="group:approvers" target="/ > **/*.*"/> > > You also must go to the workflow tab for a file - > change request is > not available at the directory level. If you would > like it to be > available at the directory level, add a binding to > the workflow tag > in /config/workflow/changes.xml > > <workflow binding="/**/,/**/*.*"> > > > Alex > > On Feb 28, 2007, at 8:27 PM, tom tom wrote: > > > Hi, > > > > Just want to know little bit more on the > following. > > > > > >> The change script allows someone with approve > >> permission to assign a > >> change request to a member of group:authors. > Both > >> the approver and > >> the author receive the email. When the author > >> submits the changes, > >> the approver receives an email, and can either > >> re-assign the change > >> or close out the work. > > > > > > I got 4 distinct users each user belongs to one > group > > only. > > > > one Author, One Approver, One Publisher and One > > Administrator. According to your explanation if > > Approver login to the system and visits Workflow > > section he/she should have the change requests > > interfaces, but I cant see any of that sort. > > > > I cant see any change requests items in the > workflow > > screen for the approver. > > > > Thanks > > > > > > > > > > > ______________________________________________________________________ > > > ______________ > > Need Mail bonding? > > Go to the Yahoo! Mail Q&A for great tips from > Yahoo! Answers users. > > > http://answers.yahoo.com/dir/?link=list&sid=396546091 > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get > the chance to share your > opinions on IT & business topics through brief > surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users > ____________________________________________________________________________________ Finding fabulous fares is fun. Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains. http://farechase.yahoo.com/promo-generic-14795097 |
From: Alex V. <al...@bi...> - 2007-03-01 03:17:36
|
Make sure your approver group actually has approve permission in permissions.xml, e.g. <permission activity="approve" principal="group:approvers" target="/ **/*.*"/> You also must go to the workflow tab for a file - change request is not available at the directory level. If you would like it to be available at the directory level, add a binding to the workflow tag in /config/workflow/changes.xml <workflow binding="/**/,/**/*.*"> Alex On Feb 28, 2007, at 8:27 PM, tom tom wrote: > Hi, > > Just want to know little bit more on the following. > > >> The change script allows someone with approve >> permission to assign a >> change request to a member of group:authors. Both >> the approver and >> the author receive the email. When the author >> submits the changes, >> the approver receives an email, and can either >> re-assign the change >> or close out the work. > > > I got 4 distinct users each user belongs to one group > only. > > one Author, One Approver, One Publisher and One > Administrator. According to your explanation if > Approver login to the system and visits Workflow > section he/she should have the change requests > interfaces, but I cant see any of that sort. > > I cant see any change requests items in the workflow > screen for the approver. > > Thanks > > > > > ______________________________________________________________________ > ______________ > Need Mail bonding? > Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users. > http://answers.yahoo.com/dir/?link=list&sid=396546091 > |
From: tom t. <j_l...@ya...> - 2007-03-01 01:27:24
|
Hi, Just want to know little bit more on the following. > The change script allows someone with approve > permission to assign a > change request to a member of group:authors. Both > the approver and > the author receive the email. When the author > submits the changes, > the approver receives an email, and can either > re-assign the change > or close out the work. I got 4 distinct users each user belongs to one group only. one Author, One Approver, One Publisher and One Administrator. According to your explanation if Approver login to the system and visits Workflow section he/she should have the change requests interfaces, but I cant see any of that sort. I cant see any change requests items in the workflow screen for the approver. Thanks ____________________________________________________________________________________ Need Mail bonding? Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users. http://answers.yahoo.com/dir/?link=list&sid=396546091 |
From: Jonathan M. <ma...@co...> - 2007-02-28 17:23:27
|
Carl- I second Alex's sentiments! Very nice work. Thanks! -Jonathan _____ From: hyp...@li... [mailto:hyp...@li...] On Behalf Of Alex Vigdor Sent: Tuesday, February 27, 2007 9:13 AM To: Hypercontent-users List Subject: Re: [Hypercontent-users] User Documentation Hi Carl, I just wanted to chime in and say the docs look great! Feel free to add a link to the wiki at any time. Cheers, Alex On Feb 23, 2007, at 9:21 AM, Carl Barrow wrote: Hi All, We have just finished the first version of our user documentation. It details most of the things a standard content editor here in Hull would need to do on a daily basis. It is the first version so there will be alterations and I'm waiting for some user feedback after a giving the documentation out at two training sessions. You can download the documentation from the Hull HyperContent Website http://www.hull.ac.uk/cms. Many Thanks Carl ************************************* Carl Barrow Systems Integrator e-Services The University of Hull Cottingham Road Hull HU6 7RX Ext. 6838 http://www.hull.ac.uk/cms ************************************* **************************************************************************** ************* To view the terms under which this email is distributed, please go to http://www.hull.ac.uk/legal/email_disclaimer.html **************************************************************************** *************--------------------------------------------------------------- ---------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV__ _____________________________________________> &p=sourceforge&CID=DEVDEV_______________________________________________ Hypercontent-users mailing list Hyp...@li... https://lists.sourceforge.net/lists/listinfo/hypercontent-users |
From: Alex V. <al...@bi...> - 2007-02-28 14:26:42
|
On Feb 27, 2007, at 11:30 PM, tom tom wrote: > 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 I've checked in the change to AbstractCommand. > > 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. To automatically have an index file created inside every directory, you could use create="auto" with your index doctype, e.g. <xml-doctype path="/**/index.xml" create="auto" ... > > 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 Compact deletes all historical revisions of files, leaving only the current revision. This can be used to free up disk space, at the expense of file history. You can remove this script if you prefer to disable that function. > > > 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) The change script allows someone with approve permission to assign a change request to a member of group:authors. Both the approver and the author receive the email. When the author submits the changes, the approver receives an email, and can either re-assign the change or close out the work. > > > > 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 > |
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 |
From: Alex V. <al...@bi...> - 2007-02-28 01:52:26
|
On Feb 27, 2007, at 5:33 PM, tom tom wrote: > Alex, > I will try it out and let you know, > > Well...Eventually when this (HC) goes to production > this will be used by the Authors, Hence there is > always a possibility this can happen, I suggest you deny your authors permission to read or write any files under /config, e.g. <permission activity="read" denied="true" principal="group:authors" target="/config/**/*.*"/> <permission activity="read" denied="true" principal="group:authors" target="/config/**/"/> > > Due to these reasons cant we do the following > > 1) Have a timeout and release the resources so that > users will not get this error all the time. Or as part > of the restart clear the locks. There is currently a 4 hour lock timeout and a 15 second lock wait time hard coded. If you'd like to see those moved to a properties file, or a facility for scheduling workflow tasks for startup, please submit jira issues. https://clearinghouse.ja-sig.org/issues/browse/HYP > > > 2) Delete unnecessary workflow data triggered by a > schedular > > 3) Mechanism to delete the history data which we can > see in the workflow screen In order to delete work data from the repository (and therefore on screen), you must remove it from any queues it is in. You can do this on a schedule. For example, in approvals.xml <q id="archived"> <event name="scheduled-discard" when="in 2 hours"> <dq where="${path}"/> <dq who="${editor}"/> <dq/> </event> ... or in publish.xml <q id="published"> <event name="scheduled-discard" when="in 2 days"> <dq who="${publisher}"/> <dq/> </event> ... See this page for more scheduling info: http://hypercontent.sourceforge.net/help/project/workflow/ scheduling.html > > Question > > 1) When the system goes through many > Author->Preview->Approve/Reject ->Build>publish > > Cycles there may be many data collected as part of > each workflow, > > Will this data cause some performance issue specially > when loading the Workflow Screen,? If so what is the > mechanism to get rid of that. Yes, this can cause performance issues loading the workflow screen. The scheduled events above will address this. > > Basically I want to be prepared if such a thing > happens when this goes to production > > > Thanks > > > > > > > Let me know your thoughts on this. > > Thanks > > > > > > > > > > > --- Alex Vigdor <al...@bi...> wrote: > >> This is likely the cause of the delays you are >> seeing; the system >> must be able to acquire a lock on workflow scripts >> in order to >> initialize them, so you have to make sure that once >> you open a >> workflow script for edit, you save or discard your >> changes. If you >> leave the file open the system will time out trying >> to acquire the lock. >> >> After things have gotten weird with the workflow >> components, its also >> a good idea to restart the server. This won't clear >> the lock, >> however - you can manually remove that from the >> filesystem by looking >> for "/config/workflow/build.xml/file.lock". >> >> Cheers, >> Alex >> >> On Feb 27, 2007, at 12:33 AM, tom tom wrote: >> >>> I looked at the catalina.out and it gives an Error >> as >>> follows. >>> >>> What is the cause for this error. >>> >>> >>> Thanks >>> >>> <Unable to load workflow build> >>> 2007-02-27 16:29:14,781 ERROR >>> [org.hypercontent.util.Logger] - <> >>> org.hypercontent.HyperException: Store already >> engaged >>> in transaction @ >> /config/workflow/build.xml(exists? >>> true) >>> at >>> >> > org.hypercontent.data.impl.AbstractDataStore.beginTransaction >> >>> (AbstractDataStore.java:141) >>> at >>> >> > org.hypercontent.data.impl.AbstractDataStore.beginTransaction >> >>> (AbstractDataStore.java:84) >>> at >>> >> > org.hypercontent.data.impl.AbstractDataStore.beginTransaction >> >>> (AbstractDataStore.java:80) >>> at >>> >> > org.hypercontent.workflow.impl.WorkflowFactoryImpl.getWorkflow >> >>> (WorkflowFactoryImpl.java:137) >>> at >>> >> > org.hypercontent.workflow.impl.WorkflowFactoryImpl.getWorkList >> >>> (WorkflowFactoryImpl.java:284) >>> at >>> >> sun.reflect.NativeMethodAccessorImpl.invoke0(Native >>> Method) >>> at >>> sun.reflect.NativeMethodAccessorImpl.invoke >>> (NativeMethodAccessorImpl.java:39) >>> at >>> sun.reflect.DelegatingMethodAccessorImpl.invoke >>> (DelegatingMethodAccessorImpl.java:25) >>> at >>> java.lang.reflect.Method.invoke(Method.java:585) >>> at >>> >> org.apache.velocity.util.introspection.UberspectImpl >> >>> $VelMethodImpl.invoke(UberspectImpl.java:267) >>> at >>> >> > org.apache.velocity.runtime.parser.node.ASTMethod.execute >> >>> (ASTMethod.java:197) >>> at >>> >> > org.apache.velocity.runtime.parser.node.ASTReference.execute >> >>> (ASTReference.java:175) >>> at >>> >> > org.apache.velocity.runtime.parser.node.ASTReference.value >> >>> (ASTReference.java:327) >>> at >>> >> > org.apache.velocity.runtime.parser.node.ASTExpression.value >> >>> (ASTExpression.java:51) >>> at >>> >> > org.apache.velocity.runtime.parser.node.ASTSetDirective.render >> >>> (ASTSetDirective.java:95) >>> at >>> >> > org.apache.velocity.runtime.parser.node.ASTBlock.render >> >>> (ASTBlock.java:55) >>> >>> >>> >>> --- tom tom <j_l...@ya...> wrote: >>> >>>> We modifed the approvals.xml as follows >>>> >>>> 1) remove the event remain reminder as we do not >>>> require them >>>> >>>> 2) Increased the content of the Approval and >> Denied >>>> email messages >>>> >>>> Since the we observe that when we click the >> workflow >>>> link it takes ages to load the workflow interface >>>> and >>>> sometimes it comes with the following exception, >>>> >>>> Is this becase we increased the email body text. >>>> >>>> Should I remove the email body text? Is this >> causing >>>> the delay and the following exception. >>>> >>>> >>>> There was an error processing your request >>>> null >>>> >>>> >>>> >>> >> > org.hypercontent.workflow.impl.WorkflowImpl.getEventDescriptors >> >>> (WorkflowImpl.java:105) >>>> >>>> >>> >> > sun.reflect.GeneratedMethodAccessor143.invoke(Unknown >>>> Source) >>>> >>>> >>> sun.reflect.DelegatingMethodAccessorImpl.invoke >>> (DelegatingMethodAccessorImpl.java:25) >>>> >> java.lang.reflect.Method.invoke(Method.java:585) >>>> >>>> >>> >> org.apache.velocity.util.introspection.UberspectImpl >> >>> $VelMethodImpl.invoke(UberspectImpl.java:267) >>>> >>>> >>> >> > org.apache.velocity.runtime.parser.node.ASTMethod.execute >> >>> (ASTMethod.java:197) >>>> >>>> >>> >> > org.apache.velocity.runtime.parser.node.ASTReference.execute >> >>> (ASTReference.java:175) >>>> >>>> >>> >> > org.apache.velocity.runtime.parser.node.ASTReference.value >> >>> (ASTReference.java:327) >>>> >>>> >>> >> > org.apache.velocity.runtime.parser.node.ASTExpression.value >> >>> (ASTExpression.java:51) >>>> >>>> >>> >> > org.apache.velocity.runtime.parser.node.ASTSetDirective.render >> >>> (ASTSetDirective.java:95) >>>> >>>> >>> >> > org.apache.velocity.runtime.parser.node.ASTBlock.render >> >> > === message truncated === > > > > > ______________________________________________________________________ > ______________ > Expecting? Get great news right away with email Auto-Check. > Try the Yahoo! Mail Beta. > http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html > |
From: Alex V. <al...@bi...> - 2007-02-28 01:31:12
|
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()); >>>>> >>>>> Then the entire functinality didnt work. >>>>> >>>>> >>>>> Well my intention is to send the mail with Full >>>> Name >>>>> instead of userIds. >>>>> >>>>> >>>>> >>>>> Let me know how to proceed on this. >>>>> >>>>> Have I done something wrong.? >>>>> >>>>> Thanks, >>>>> >>>>> >>>>> --- Alex Vigdor <al...@bi...> wrote: >>>>> >>>>>> >>>>>> On Feb 20, 2007, at 9:23 PM, tom tom wrote: >>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> I got hypercontent working with apache2.2 with >>>>>> tomcat >>>>>>> with the use of mod_jk, Hence am moving slowly >>>>>> towards >>>>>>> the production setup. >>>>>>> >>>>>>> I got following doubts/questions which am not >>>> very >>>>>>> clear. >>>>>>> >>>>>>> >>>>>>> 1) What is the difference between build and >>>>>> publish as >>>>>>> far as the HC life cycle is concerned. How >>>>>> build/build >>>>>>> -all differ from publish >>>>>> >>>>>> Build and publish represent a two-step >> publishing >>>>>> process: the first >>>>>> step renders the static output on a staging >>>>>> filesystem that can be >>>>>> used to review the content before it is copied >> to >>>>>> the publishing >>>>>> filesystem. As it turns out, most people are >>>>>> perfectly happy with a >>>>>> one-step publishing workflow that renders the >>>> static >>>>>> output directly >>>>>> to the public web space. To use this simpler >>>>>> approach, adjust the >>>>>> events in /config/workflow/publish.xml to >>>> something >>>>>> like this >>>>>> >>>>>> <event name="publish" permissions="publish"> >>>>>> <variable name="publisher" value="${actor}"/> >> >>>>>> <render path="${path}" >> destination="/publish/" >>>>>> force="false" >>>>>> delete="true"/> >>>>>> <nq who="${publisher}"/> >>>>>> <nq q="publishing"/> >>>>>> </event> >>>>>> >>>>>> <event name="publish-all" >> permissions="publish"> >>>>>> <variable name="publisher" value="${actor}"/> >> >>>>>> <render path="/" destination="/publish/" >>>>>> force="false" delete="true"/> >>>>>> <nq who="${publisher}"/> >>>>>> <nq q="publishing"/> >>>>>> </event> >>>>>> >>>>>> Then you can remove /config/workflow/build.xml >>>> and >>>>>> any build >>>>>> filesystem. "/publish/" refers to your publish >>>>>> filesystem in / >>>>>> config/project-definition.xml >>>>>> >>>>>>> >>>>>>> >>>>>>> 2) As I am running HC and apache in one >>>>>> machine(with >>>>>>> mod_jk) should I use build and publish at all? >>>>>> Isnt >>>>>>> author->preview->approve enough? >>>>>>> >>>>>>> Initialy I thought I dont want to use but >> later >>>>>>> realize that if I dont use build and publish >> > === message truncated === > > > > > ______________________________________________________________________ > ______________ > 8:00? 8:25? 8:40? Find a flick in no time > with the Yahoo! Search movie showtime shortcut. > http://tools.search.yahoo.com/shortcuts/#news > |
From: tom t. <j_l...@ya...> - 2007-02-28 00:25:13
|
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()); > >>> > >>> Then the entire functinality didnt work. > >>> > >>> > >>> Well my intention is to send the mail with Full > >> Name > >>> instead of userIds. > >>> > >>> > >>> > >>> Let me know how to proceed on this. > >>> > >>> Have I done something wrong.? > >>> > >>> Thanks, > >>> > >>> > >>> --- Alex Vigdor <al...@bi...> wrote: > >>> > >>>> > >>>> On Feb 20, 2007, at 9:23 PM, tom tom wrote: > >>>> > >>>>> Hi, > >>>>> > >>>>> I got hypercontent working with apache2.2 with > >>>> tomcat > >>>>> with the use of mod_jk, Hence am moving slowly > >>>> towards > >>>>> the production setup. > >>>>> > >>>>> I got following doubts/questions which am not > >> very > >>>>> clear. > >>>>> > >>>>> > >>>>> 1) What is the difference between build and > >>>> publish as > >>>>> far as the HC life cycle is concerned. How > >>>> build/build > >>>>> -all differ from publish > >>>> > >>>> Build and publish represent a two-step > publishing > >>>> process: the first > >>>> step renders the static output on a staging > >>>> filesystem that can be > >>>> used to review the content before it is copied > to > >>>> the publishing > >>>> filesystem. As it turns out, most people are > >>>> perfectly happy with a > >>>> one-step publishing workflow that renders the > >> static > >>>> output directly > >>>> to the public web space. To use this simpler > >>>> approach, adjust the > >>>> events in /config/workflow/publish.xml to > >> something > >>>> like this > >>>> > >>>> <event name="publish" permissions="publish"> > >>>> <variable name="publisher" value="${actor}"/> > > >>>> <render path="${path}" > destination="/publish/" > >>>> force="false" > >>>> delete="true"/> > >>>> <nq who="${publisher}"/> > >>>> <nq q="publishing"/> > >>>> </event> > >>>> > >>>> <event name="publish-all" > permissions="publish"> > >>>> <variable name="publisher" value="${actor}"/> > > >>>> <render path="/" destination="/publish/" > >>>> force="false" delete="true"/> > >>>> <nq who="${publisher}"/> > >>>> <nq q="publishing"/> > >>>> </event> > >>>> > >>>> Then you can remove /config/workflow/build.xml > >> and > >>>> any build > >>>> filesystem. "/publish/" refers to your publish > >>>> filesystem in / > >>>> config/project-definition.xml > >>>> > >>>>> > >>>>> > >>>>> 2) As I am running HC and apache in one > >>>> machine(with > >>>>> mod_jk) should I use build and publish at all? > >>>> Isnt > >>>>> author->preview->approve enough? > >>>>> > >>>>> Initialy I thought I dont want to use but > later > >>>>> realize that if I dont use build and publish > === message truncated === ____________________________________________________________________________________ 8:00? 8:25? 8:40? Find a flick in no time with the Yahoo! Search movie showtime shortcut. http://tools.search.yahoo.com/shortcuts/#news |
From: tom t. <j_l...@ya...> - 2007-02-27 23:37:08
|
Hi, In my project definition I have defined the build base-url. In my build.xml both build and buildAll got the href variable which points to a internal html variable. That works fine But in my view-built I defined my redirect url as follows ${abs-project-base}/build/ I assumed this would go to the base-url defined in my project definition, but that is not the case it gives the You are not authorized to access http://localhost/hypercontent/sample/build/ This is the reason I asked how can I retrieve the base-url which I defined in the project definition. Due to these reason now I am going to hard code the url in build.xml. My objective is how best can I parameterize these urls as these might vary based on the test and production enviornment, (e.g put it to a build.property file and replace via ant scripts) I did lot of parameterization in the bootstrap project, but cant think of a way how can I do it to a specific project. Thanks, --- Alex Vigdor <al...@bi...> wrote: > Hi, > Pointing the browser to "/build/" should redirect > to your base-url > in the project definition, is it not? You can can > always specify the > absolute URL in the view-built redirect. > > Alex > > On Feb 26, 2007, at 1:02 AM, tom tom wrote: > > > Hi, > > > > In my project definition under the section build I > > gave a seperate base-url as my contents will be > served > > by apache, this is under build section > > > > How can retrieve and redirect to that url in the > > > > view-built event in the build.xml currently it got > the > > following > > > > <event name="view-built" permissions="read"> > > <redirect location="/build/"/> > > </event> > > > > > > > > > > > > > > > > > ______________________________________________________________________ > > > ______________ > > 8:00? 8:25? 8:40? Find a flick in no time > > with the Yahoo! Search movie showtime shortcut. > > http://tools.search.yahoo.com/shortcuts/#news > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get > the chance to share your > opinions on IT & business topics through brief > surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users > ____________________________________________________________________________________ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com |
From: tom t. <j_l...@ya...> - 2007-02-27 22:34:07
|
Alex, I will try it out and let you know, Well...Eventually when this (HC) goes to production this will be used by the Authors, Hence there is always a possibility this can happen, Due to these reasons cant we do the following 1) Have a timeout and release the resources so that users will not get this error all the time. Or as part of the restart clear the locks. 2) Delete unnecessary workflow data triggered by a schedular 3) Mechanism to delete the history data which we can see in the workflow screen Question 1) When the system goes through many Author->Preview->Approve/Reject ->Build>publish Cycles there may be many data collected as part of each workflow, Will this data cause some performance issue specially when loading the Workflow Screen,? If so what is the mechanism to get rid of that. Basically I want to be prepared if such a thing happens when this goes to production Thanks Let me know your thoughts on this. Thanks --- Alex Vigdor <al...@bi...> wrote: > This is likely the cause of the delays you are > seeing; the system > must be able to acquire a lock on workflow scripts > in order to > initialize them, so you have to make sure that once > you open a > workflow script for edit, you save or discard your > changes. If you > leave the file open the system will time out trying > to acquire the lock. > > After things have gotten weird with the workflow > components, its also > a good idea to restart the server. This won't clear > the lock, > however - you can manually remove that from the > filesystem by looking > for "/config/workflow/build.xml/file.lock". > > Cheers, > Alex > > On Feb 27, 2007, at 12:33 AM, tom tom wrote: > > > I looked at the catalina.out and it gives an Error > as > > follows. > > > > What is the cause for this error. > > > > > > Thanks > > > > <Unable to load workflow build> > > 2007-02-27 16:29:14,781 ERROR > > [org.hypercontent.util.Logger] - <> > > org.hypercontent.HyperException: Store already > engaged > > in transaction @ > /config/workflow/build.xml(exists? > > true) > > at > > > org.hypercontent.data.impl.AbstractDataStore.beginTransaction > > > (AbstractDataStore.java:141) > > at > > > org.hypercontent.data.impl.AbstractDataStore.beginTransaction > > > (AbstractDataStore.java:84) > > at > > > org.hypercontent.data.impl.AbstractDataStore.beginTransaction > > > (AbstractDataStore.java:80) > > at > > > org.hypercontent.workflow.impl.WorkflowFactoryImpl.getWorkflow > > > (WorkflowFactoryImpl.java:137) > > at > > > org.hypercontent.workflow.impl.WorkflowFactoryImpl.getWorkList > > > (WorkflowFactoryImpl.java:284) > > at > > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > Method) > > at > > sun.reflect.NativeMethodAccessorImpl.invoke > > (NativeMethodAccessorImpl.java:39) > > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke > > (DelegatingMethodAccessorImpl.java:25) > > at > > java.lang.reflect.Method.invoke(Method.java:585) > > at > > > org.apache.velocity.util.introspection.UberspectImpl > > > $VelMethodImpl.invoke(UberspectImpl.java:267) > > at > > > org.apache.velocity.runtime.parser.node.ASTMethod.execute > > > (ASTMethod.java:197) > > at > > > org.apache.velocity.runtime.parser.node.ASTReference.execute > > > (ASTReference.java:175) > > at > > > org.apache.velocity.runtime.parser.node.ASTReference.value > > > (ASTReference.java:327) > > at > > > org.apache.velocity.runtime.parser.node.ASTExpression.value > > > (ASTExpression.java:51) > > at > > > org.apache.velocity.runtime.parser.node.ASTSetDirective.render > > > (ASTSetDirective.java:95) > > at > > > org.apache.velocity.runtime.parser.node.ASTBlock.render > > > (ASTBlock.java:55) > > > > > > > > --- tom tom <j_l...@ya...> wrote: > > > >> We modifed the approvals.xml as follows > >> > >> 1) remove the event remain reminder as we do not > >> require them > >> > >> 2) Increased the content of the Approval and > Denied > >> email messages > >> > >> Since the we observe that when we click the > workflow > >> link it takes ages to load the workflow interface > >> and > >> sometimes it comes with the following exception, > >> > >> Is this becase we increased the email body text. > >> > >> Should I remove the email body text? Is this > causing > >> the delay and the following exception. > >> > >> > >> There was an error processing your request > >> null > >> > >> > >> > > > org.hypercontent.workflow.impl.WorkflowImpl.getEventDescriptors > > > (WorkflowImpl.java:105) > >> > >> > > > sun.reflect.GeneratedMethodAccessor143.invoke(Unknown > >> Source) > >> > >> > > sun.reflect.DelegatingMethodAccessorImpl.invoke > > (DelegatingMethodAccessorImpl.java:25) > >> > java.lang.reflect.Method.invoke(Method.java:585) > >> > >> > > > org.apache.velocity.util.introspection.UberspectImpl > > > $VelMethodImpl.invoke(UberspectImpl.java:267) > >> > >> > > > org.apache.velocity.runtime.parser.node.ASTMethod.execute > > > (ASTMethod.java:197) > >> > >> > > > org.apache.velocity.runtime.parser.node.ASTReference.execute > > > (ASTReference.java:175) > >> > >> > > > org.apache.velocity.runtime.parser.node.ASTReference.value > > > (ASTReference.java:327) > >> > >> > > > org.apache.velocity.runtime.parser.node.ASTExpression.value > > > (ASTExpression.java:51) > >> > >> > > > org.apache.velocity.runtime.parser.node.ASTSetDirective.render > > > (ASTSetDirective.java:95) > >> > >> > > > org.apache.velocity.runtime.parser.node.ASTBlock.render > > === message truncated === ____________________________________________________________________________________ Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html |
From: Alex V. <al...@bi...> - 2007-02-27 14:27:32
|
This is likely the cause of the delays you are seeing; the system must be able to acquire a lock on workflow scripts in order to initialize them, so you have to make sure that once you open a workflow script for edit, you save or discard your changes. If you leave the file open the system will time out trying to acquire the lock. After things have gotten weird with the workflow components, its also a good idea to restart the server. This won't clear the lock, however - you can manually remove that from the filesystem by looking for "/config/workflow/build.xml/file.lock". Cheers, Alex On Feb 27, 2007, at 12:33 AM, tom tom wrote: > I looked at the catalina.out and it gives an Error as > follows. > > What is the cause for this error. > > > Thanks > > <Unable to load workflow build> > 2007-02-27 16:29:14,781 ERROR > [org.hypercontent.util.Logger] - <> > org.hypercontent.HyperException: Store already engaged > in transaction @ /config/workflow/build.xml(exists? > true) > at > org.hypercontent.data.impl.AbstractDataStore.beginTransaction > (AbstractDataStore.java:141) > at > org.hypercontent.data.impl.AbstractDataStore.beginTransaction > (AbstractDataStore.java:84) > at > org.hypercontent.data.impl.AbstractDataStore.beginTransaction > (AbstractDataStore.java:80) > at > org.hypercontent.workflow.impl.WorkflowFactoryImpl.getWorkflow > (WorkflowFactoryImpl.java:137) > at > org.hypercontent.workflow.impl.WorkflowFactoryImpl.getWorkList > (WorkflowFactoryImpl.java:284) > at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke > (NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke > (DelegatingMethodAccessorImpl.java:25) > at > java.lang.reflect.Method.invoke(Method.java:585) > at > org.apache.velocity.util.introspection.UberspectImpl > $VelMethodImpl.invoke(UberspectImpl.java:267) > at > org.apache.velocity.runtime.parser.node.ASTMethod.execute > (ASTMethod.java:197) > at > org.apache.velocity.runtime.parser.node.ASTReference.execute > (ASTReference.java:175) > at > org.apache.velocity.runtime.parser.node.ASTReference.value > (ASTReference.java:327) > at > org.apache.velocity.runtime.parser.node.ASTExpression.value > (ASTExpression.java:51) > at > org.apache.velocity.runtime.parser.node.ASTSetDirective.render > (ASTSetDirective.java:95) > at > org.apache.velocity.runtime.parser.node.ASTBlock.render > (ASTBlock.java:55) > > > > --- tom tom <j_l...@ya...> wrote: > >> We modifed the approvals.xml as follows >> >> 1) remove the event remain reminder as we do not >> require them >> >> 2) Increased the content of the Approval and Denied >> email messages >> >> Since the we observe that when we click the workflow >> link it takes ages to load the workflow interface >> and >> sometimes it comes with the following exception, >> >> Is this becase we increased the email body text. >> >> Should I remove the email body text? Is this causing >> the delay and the following exception. >> >> >> There was an error processing your request >> null >> >> >> > org.hypercontent.workflow.impl.WorkflowImpl.getEventDescriptors > (WorkflowImpl.java:105) >> >> > sun.reflect.GeneratedMethodAccessor143.invoke(Unknown >> Source) >> >> > sun.reflect.DelegatingMethodAccessorImpl.invoke > (DelegatingMethodAccessorImpl.java:25) >> java.lang.reflect.Method.invoke(Method.java:585) >> >> > org.apache.velocity.util.introspection.UberspectImpl > $VelMethodImpl.invoke(UberspectImpl.java:267) >> >> > org.apache.velocity.runtime.parser.node.ASTMethod.execute > (ASTMethod.java:197) >> >> > org.apache.velocity.runtime.parser.node.ASTReference.execute > (ASTReference.java:175) >> >> > org.apache.velocity.runtime.parser.node.ASTReference.value > (ASTReference.java:327) >> >> > org.apache.velocity.runtime.parser.node.ASTExpression.value > (ASTExpression.java:51) >> >> > org.apache.velocity.runtime.parser.node.ASTSetDirective.render > (ASTSetDirective.java:95) >> >> > org.apache.velocity.runtime.parser.node.ASTBlock.render > (ASTBlock.java:55) >> >> > org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166) >> >> > org.apache.velocity.runtime.parser.node.ASTDirective.render > (ASTDirective.java:114) >> >> > org.apache.velocity.runtime.parser.node.ASTBlock.render > (ASTBlock.java:55) >> >> > org.apache.velocity.runtime.parser.node.SimpleNode.render > (SimpleNode.java:230) >> >> > org.apache.velocity.runtime.parser.node.ASTIfStatement.render > (ASTIfStatement.java:89) >> >> > org.apache.velocity.runtime.parser.node.SimpleNode.render > (SimpleNode.java:230) >> >> > org.apache.velocity.Template.merge(Template.java:256) >> >> > org.hypercontent.project.engine.stage.VelocityStage.process > (VelocityStage.java:188) >> >> > org.hypercontent.project.engine.Pipeline.process(Pipeline.java:311) >> >> > org.hypercontent.project.engine.Pipeline.process(Pipeline.java:285) >> >> > org.hypercontent.project.AssetRequest.getAsset(AssetRequest.java:202) >> >> > org.hypercontent.server.ContentServer.service(ContentServer.java:450) >> >> > org.hypercontent.servlet.CompositionServlet.doGet > (CompositionServlet.java:104) >> >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:689) >> >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) >> >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter > (ApplicationFilterChain.java:252) >> >> > org.apache.catalina.core.ApplicationFilterChain.doFilter > (ApplicationFilterChain.java:173) >> >> > org.apache.catalina.core.StandardWrapperValve.invoke > (StandardWrapperValve.java:213) >> >> > org.apache.catalina.core.StandardContextValve.invoke > (StandardContextValve.java:178) >> >> > org.apache.catalina.core.StandardHostValve.invoke > (StandardHostValve.java:126) >> >> > org.apache.catalina.valves.ErrorReportValve.invoke > (ErrorReportValve.java:105) >> >> > org.apache.catalina.core.StandardEngineValve.invoke > (StandardEngineValve.java:107) >> >> > org.apache.catalina.connector.CoyoteAdapter.service > (CoyoteAdapter.java:148) >> >> > org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199) >> >> > org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282) >> >> > org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:744) >> >> > org.apache.jk.common.ChannelSocket.processConnection > (ChannelSocket.java:674) >> >> > org.apache.jk.common.ChannelSocket$SocketConnection.runIt > (ChannelSocket.java:866) >> >> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run > (ThreadPool.java:684) >> java.lang.Thread.run(Thread.java:595) >> >> >> >> >> > ______________________________________________________________________ > ______________ >> Looking for earth-friendly autos? >> Browse Top Cars by "Green Rating" at Yahoo! Autos' >> Green Center. >> http://autos.yahoo.com/green_center/ >> >> > ---------------------------------------------------------------------- > --- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get >> the chance to share your >> opinions on IT & business topics through brief >> surveys-and earn cash >> > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> Hypercontent-users mailing list >> Hyp...@li... >> > https://lists.sourceforge.net/lists/listinfo/hypercontent-users >> > > > > > ______________________________________________________________________ > ______________ > 8:00? 8:25? 8:40? Find a flick in no time > with the Yahoo! Search movie showtime shortcut. > http://tools.search.yahoo.com/shortcuts/#news > > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users > |
From: Alex V. <al...@bi...> - 2007-02-27 14:21:55
|
Hi, Pointing the browser to "/build/" should redirect to your base-url in the project definition, is it not? You can can always specify the absolute URL in the view-built redirect. Alex On Feb 26, 2007, at 1:02 AM, tom tom wrote: > Hi, > > In my project definition under the section build I > gave a seperate base-url as my contents will be served > by apache, this is under build section > > How can retrieve and redirect to that url in the > > view-built event in the build.xml currently it got the > following > > <event name="view-built" permissions="read"> > <redirect location="/build/"/> > </event> > > > > > > > > ______________________________________________________________________ > ______________ > 8:00? 8:25? 8:40? Find a flick in no time > with the Yahoo! Search movie showtime shortcut. > http://tools.search.yahoo.com/shortcuts/#news > |
From: Alex V. <al...@bi...> - 2007-02-27 14:19:46
|
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()); >>> >>> Then the entire functinality didnt work. >>> >>> >>> Well my intention is to send the mail with Full >> Name >>> instead of userIds. >>> >>> >>> >>> Let me know how to proceed on this. >>> >>> Have I done something wrong.? >>> >>> Thanks, >>> >>> >>> --- Alex Vigdor <al...@bi...> wrote: >>> >>>> >>>> On Feb 20, 2007, at 9:23 PM, tom tom wrote: >>>> >>>>> Hi, >>>>> >>>>> I got hypercontent working with apache2.2 with >>>> tomcat >>>>> with the use of mod_jk, Hence am moving slowly >>>> towards >>>>> the production setup. >>>>> >>>>> I got following doubts/questions which am not >> very >>>>> clear. >>>>> >>>>> >>>>> 1) What is the difference between build and >>>> publish as >>>>> far as the HC life cycle is concerned. How >>>> build/build >>>>> -all differ from publish >>>> >>>> Build and publish represent a two-step publishing >>>> process: the first >>>> step renders the static output on a staging >>>> filesystem that can be >>>> used to review the content before it is copied to >>>> the publishing >>>> filesystem. As it turns out, most people are >>>> perfectly happy with a >>>> one-step publishing workflow that renders the >> static >>>> output directly >>>> to the public web space. To use this simpler >>>> approach, adjust the >>>> events in /config/workflow/publish.xml to >> something >>>> like this >>>> >>>> <event name="publish" permissions="publish"> >>>> <variable name="publisher" value="${actor}"/> >>>> <render path="${path}" destination="/publish/" >>>> force="false" >>>> delete="true"/> >>>> <nq who="${publisher}"/> >>>> <nq q="publishing"/> >>>> </event> >>>> >>>> <event name="publish-all" permissions="publish"> >>>> <variable name="publisher" value="${actor}"/> >>>> <render path="/" destination="/publish/" >>>> force="false" delete="true"/> >>>> <nq who="${publisher}"/> >>>> <nq q="publishing"/> >>>> </event> >>>> >>>> Then you can remove /config/workflow/build.xml >> and >>>> any build >>>> filesystem. "/publish/" refers to your publish >>>> filesystem in / >>>> config/project-definition.xml >>>> >>>>> >>>>> >>>>> 2) As I am running HC and apache in one >>>> machine(with >>>>> mod_jk) should I use build and publish at all? >>>> Isnt >>>>> author->preview->approve enough? >>>>> >>>>> Initialy I thought I dont want to use but later >>>>> realize that if I dont use build and publish >>>> content >>>>> will be served by tomcat (even with mod_jk). Due >>>> to >>>>> shis reason >>>>> I introduced the build-url and build and publish >>>> the >>>>> content to apache docs folder so that static >>>> content >>>>> will be served directly by apache. Please let me >>>> know >>>>> we are on the correct track? If the build and >>>> publish >>>>> not required align with our configuration pls do >>>> let >>>>> us know? >>>> >>>> I suggest >>>> >>>> author->preview->approve->publish >>>> >>>> if you drop the build step as outlined above >>>> >>>>> >>>>> >>>>> >>>>> 3) in the Approvals.xml it refers to the >> ${actor} >>>>> variable and assign it to a variable called >> author >>>>> >>>>> Specially when sending reminders it sends the >>>> message >>>>> with the uid not with the fullname. >>>>> How to get the username/full name (assuming >> he/she >>>> has >>>>> updated his/her profile) within the >> approvals.xml >>>> and >>>>> send the mail accordinlgy instead of the >> uid(this >>>> is a >>>>> numeric in our case) What is the variable that I >>>>> should refer within the approvals.xml to get the >>>> users >>>>> name. >>>> >>>> This isn't supported at the moment, but you could >>>> implement it around >>>> line 57 of >>>> org.hypercontent.workflow.command.AbstractCommand >>>> following the pattern there to associate a >> variable >>>> name with the >>>> results of a VCard lookup, something like >>>> >> > === message truncated === > > > > > ______________________________________________________________________ > ______________ > Need a quick answer? Get one in minutes from people who know. > Ask your question on www.Answers.yahoo.com > |
From: Alex V. <al...@bi...> - 2007-02-27 14:13:12
|
Hi Carl, I just wanted to chime in and say the docs look great! Feel = free to =20 add a link to the wiki at any time. Cheers, Alex On Feb 23, 2007, at 9:21 AM, Carl Barrow wrote: > Hi All, > > > > We have just finished the first version of our user documentation. =20= > It details most of the things a standard content editor here in =20 > Hull would need to do on a daily basis. It is the first version so =20= > there will be alterations and I=92m waiting for some user feedback =20 > after a giving the documentation out at two training sessions. =20 > You can download the documentation from the Hull HyperContent =20 > Website http://www.hull.ac.uk/cms. > > > > Many Thanks > > Carl > > > > ************************************* > > Carl Barrow > Systems Integrator > e-Services > The University of Hull > Cottingham Road > Hull > HU6 7RX > Ext. 6838 > > http://www.hull.ac.uk/cms > > ************************************* > > > > **********************************************************************=20= > ******************* > To view the terms under which this email is distributed, please go =20 > to http://www.hull.ac.uk/legal/email_disclaimer.html > **********************************************************************=20= > *******************---------------------------------------------------=20= > ---------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to =20 > share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?=20 > page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV____________________________= ____=20 > _______________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users |
From: tom t. <j_l...@ya...> - 2007-02-27 05:33:43
|
I looked at the catalina.out and it gives an Error as follows. What is the cause for this error. Thanks <Unable to load workflow build> 2007-02-27 16:29:14,781 ERROR [org.hypercontent.util.Logger] - <> org.hypercontent.HyperException: Store already engaged in transaction @ /config/workflow/build.xml(exists? true) at org.hypercontent.data.impl.AbstractDataStore.beginTransaction(AbstractDataStore.java:141) at org.hypercontent.data.impl.AbstractDataStore.beginTransaction(AbstractDataStore.java:84) at org.hypercontent.data.impl.AbstractDataStore.beginTransaction(AbstractDataStore.java:80) at org.hypercontent.workflow.impl.WorkflowFactoryImpl.getWorkflow(WorkflowFactoryImpl.java:137) at org.hypercontent.workflow.impl.WorkflowFactoryImpl.getWorkList(WorkflowFactoryImpl.java:284) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:267) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:197) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:327) at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:51) at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:95) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) --- tom tom <j_l...@ya...> wrote: > We modifed the approvals.xml as follows > > 1) remove the event remain reminder as we do not > require them > > 2) Increased the content of the Approval and Denied > email messages > > Since the we observe that when we click the workflow > link it takes ages to load the workflow interface > and > sometimes it comes with the following exception, > > Is this becase we increased the email body text. > > Should I remove the email body text? Is this causing > the delay and the following exception. > > > There was an error processing your request > null > > > org.hypercontent.workflow.impl.WorkflowImpl.getEventDescriptors(WorkflowImpl.java:105) > > sun.reflect.GeneratedMethodAccessor143.invoke(Unknown > Source) > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > java.lang.reflect.Method.invoke(Method.java:585) > > org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:267) > > org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:197) > > org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175) > > org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:327) > > org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:51) > > org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:95) > > org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) > > org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166) > > org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114) > > org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) > > org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) > > org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:89) > > org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) > > org.apache.velocity.Template.merge(Template.java:256) > > org.hypercontent.project.engine.stage.VelocityStage.process(VelocityStage.java:188) > > org.hypercontent.project.engine.Pipeline.process(Pipeline.java:311) > > org.hypercontent.project.engine.Pipeline.process(Pipeline.java:285) > > org.hypercontent.project.AssetRequest.getAsset(AssetRequest.java:202) > > org.hypercontent.server.ContentServer.service(ContentServer.java:450) > > org.hypercontent.servlet.CompositionServlet.doGet(CompositionServlet.java:104) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:689) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) > > org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199) > > org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282) > > org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:744) > > org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:674) > > org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:866) > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) > java.lang.Thread.run(Thread.java:595) > > > > > ____________________________________________________________________________________ > Looking for earth-friendly autos? > Browse Top Cars by "Green Rating" at Yahoo! Autos' > Green Center. > http://autos.yahoo.com/green_center/ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get > the chance to share your > opinions on IT & business topics through brief > surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users > ____________________________________________________________________________________ 8:00? 8:25? 8:40? Find a flick in no time with the Yahoo! Search movie showtime shortcut. http://tools.search.yahoo.com/shortcuts/#news |
From: tom t. <j_l...@ya...> - 2007-02-27 05:21:55
|
We modifed the approvals.xml as follows 1) remove the event remain reminder as we do not require them 2) Increased the content of the Approval and Denied email messages Since the we observe that when we click the workflow link it takes ages to load the workflow interface and sometimes it comes with the following exception, Is this becase we increased the email body text. Should I remove the email body text? Is this causing the delay and the following exception. There was an error processing your request null org.hypercontent.workflow.impl.WorkflowImpl.getEventDescriptors(WorkflowImpl.java:105) sun.reflect.GeneratedMethodAccessor143.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585) org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:267) org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:197) org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175) org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:327) org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:51) org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:95) org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166) org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114) org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:89) org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) org.apache.velocity.Template.merge(Template.java:256) org.hypercontent.project.engine.stage.VelocityStage.process(VelocityStage.java:188) org.hypercontent.project.engine.Pipeline.process(Pipeline.java:311) org.hypercontent.project.engine.Pipeline.process(Pipeline.java:285) org.hypercontent.project.AssetRequest.getAsset(AssetRequest.java:202) org.hypercontent.server.ContentServer.service(ContentServer.java:450) org.hypercontent.servlet.CompositionServlet.doGet(CompositionServlet.java:104) javax.servlet.http.HttpServlet.service(HttpServlet.java:689) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199) org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282) org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:744) org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:674) org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:866) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) java.lang.Thread.run(Thread.java:595) ____________________________________________________________________________________ Looking for earth-friendly autos? Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center. http://autos.yahoo.com/green_center/ |
From: tom t. <j_l...@ya...> - 2007-02-26 06:02:44
|
Hi, In my project definition under the section build I gave a seperate base-url as my contents will be served by apache, this is under build section How can retrieve and redirect to that url in the view-built event in the build.xml currently it got the following <event name="view-built" permissions="read"> <redirect location="/build/"/> </event> ____________________________________________________________________________________ 8:00? 8:25? 8:40? Find a flick in no time with the Yahoo! Search movie showtime shortcut. http://tools.search.yahoo.com/shortcuts/#news |
From: tom t. <j_l...@ya...> - 2007-02-26 03:50:06
|
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()); > > > > Then the entire functinality didnt work. > > > > > > Well my intention is to send the mail with Full > Name > > instead of userIds. > > > > > > > > Let me know how to proceed on this. > > > > Have I done something wrong.? > > > > Thanks, > > > > > > --- Alex Vigdor <al...@bi...> wrote: > > > >> > >> On Feb 20, 2007, at 9:23 PM, tom tom wrote: > >> > >>> Hi, > >>> > >>> I got hypercontent working with apache2.2 with > >> tomcat > >>> with the use of mod_jk, Hence am moving slowly > >> towards > >>> the production setup. > >>> > >>> I got following doubts/questions which am not > very > >>> clear. > >>> > >>> > >>> 1) What is the difference between build and > >> publish as > >>> far as the HC life cycle is concerned. How > >> build/build > >>> -all differ from publish > >> > >> Build and publish represent a two-step publishing > >> process: the first > >> step renders the static output on a staging > >> filesystem that can be > >> used to review the content before it is copied to > >> the publishing > >> filesystem. As it turns out, most people are > >> perfectly happy with a > >> one-step publishing workflow that renders the > static > >> output directly > >> to the public web space. To use this simpler > >> approach, adjust the > >> events in /config/workflow/publish.xml to > something > >> like this > >> > >> <event name="publish" permissions="publish"> > >> <variable name="publisher" value="${actor}"/> > >> <render path="${path}" destination="/publish/" > >> force="false" > >> delete="true"/> > >> <nq who="${publisher}"/> > >> <nq q="publishing"/> > >> </event> > >> > >> <event name="publish-all" permissions="publish"> > >> <variable name="publisher" value="${actor}"/> > >> <render path="/" destination="/publish/" > >> force="false" delete="true"/> > >> <nq who="${publisher}"/> > >> <nq q="publishing"/> > >> </event> > >> > >> Then you can remove /config/workflow/build.xml > and > >> any build > >> filesystem. "/publish/" refers to your publish > >> filesystem in / > >> config/project-definition.xml > >> > >>> > >>> > >>> 2) As I am running HC and apache in one > >> machine(with > >>> mod_jk) should I use build and publish at all? > >> Isnt > >>> author->preview->approve enough? > >>> > >>> Initialy I thought I dont want to use but later > >>> realize that if I dont use build and publish > >> content > >>> will be served by tomcat (even with mod_jk). Due > >> to > >>> shis reason > >>> I introduced the build-url and build and publish > >> the > >>> content to apache docs folder so that static > >> content > >>> will be served directly by apache. Please let me > >> know > >>> we are on the correct track? If the build and > >> publish > >>> not required align with our configuration pls do > >> let > >>> us know? > >> > >> I suggest > >> > >> author->preview->approve->publish > >> > >> if you drop the build step as outlined above > >> > >>> > >>> > >>> > >>> 3) in the Approvals.xml it refers to the > ${actor} > >>> variable and assign it to a variable called > author > >>> > >>> Specially when sending reminders it sends the > >> message > >>> with the uid not with the fullname. > >>> How to get the username/full name (assuming > he/she > >> has > >>> updated his/her profile) within the > approvals.xml > >> and > >>> send the mail accordinlgy instead of the > uid(this > >> is a > >>> numeric in our case) What is the variable that I > >>> should refer within the approvals.xml to get the > >> users > >>> name. > >> > >> This isn't supported at the moment, but you could > >> implement it around > >> line 57 of > >> org.hypercontent.workflow.command.AbstractCommand > >> following the pattern there to associate a > variable > >> name with the > >> results of a VCard lookup, something like > >> > === message truncated === ____________________________________________________________________________________ Need a quick answer? Get one in minutes from people who know. Ask your question on www.Answers.yahoo.com |