Thread: [Hypercontent-users] Further doubts and clarifications needed
Brought to you by:
alexvigdor
From: tom t. <j_l...@ya...> - 2007-02-21 02:23:54
|
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 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? 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. 4) As far as the UI screens are concerned I need to change the name of the texts in some of the UIs specially workflow. I have seen references as follows $bundle.get("XXXXXXXXX") I just want to know where these screen text constants are kept, from which property file it get loaded to $bundle Thanks, ____________________________________________________________________________________ Cheap talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. http://voice.yahoo.com |
From: Alex V. <al...@bi...> - 2007-02-22 04:24:33
|
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 else if(Strings.equals(name,"user-full-name")){ try { var.set(0,event.getUser().getFullName())); } catch(IOException e) { Logger.error(e); } } Let me know if that works for you, and I can check it into CVS! > > > 4) As far as the UI screens are concerned I need to > change the name of the texts in some of the UIs > specially workflow. > > I have seen references as follows > $bundle.get("XXXXXXXXX") > I just want to know where these screen text constants > are kept, from which property file it get loaded to > $bundle The localization files are stored in the /l10n directory of the bootstrap repository. Cheers, Alex |
From: tom t. <j_l...@ya...> - 2007-02-23 04:09:18
|
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 > > else if(Strings.equals(name,"user-full-name")){ > try { > > var.set(0,event.getUser().getFullName())); > } > catch(IOException e) { > Logger.error(e); > } > } > > Let me know if that works for you, and I can check > it into CVS! > > > > > > > > 4) As far as the UI screens are concerned I need > to > > change the name of the texts in some of the UIs > > specially workflow. > > > > I have seen references as follows > > $bundle.get("XXXXXXXXX") > > I just want to know where these screen text > constants > > are kept, from which property file it get loaded > to > > $bundle > > The localization files are stored in the /l10n > directory of the > bootstrap repository. > > Cheers, > Alex > > > ____________________________________________________________________________________ Cheap talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. http://voice.yahoo.com |
From: Alex V. <al...@bi...> - 2007-02-23 13:44:52
|
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 >> >> else if(Strings.equals(name,"user-full-name")){ >> try { >> >> var.set(0,event.getUser().getFullName())); >> } >> catch(IOException e) { >> Logger.error(e); >> } >> } >> >> Let me know if that works for you, and I can check >> it into CVS! >> >> >>> >>> >>> 4) As far as the UI screens are concerned I need >> to >>> change the name of the texts in some of the UIs >>> specially workflow. >>> >>> I have seen references as follows >>> $bundle.get("XXXXXXXXX") >>> I just want to know where these screen text >> constants >>> are kept, from which property file it get loaded >> to >>> $bundle >> >> The localization files are stored in the /l10n >> directory of the >> bootstrap repository. >> >> Cheers, >> Alex >> >> >> > > > > > ______________________________________________________________________ > ______________ > Cheap talk? > Check out Yahoo! Messenger's low PC-to-Phone call rates. > http://voice.yahoo.com > |
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 |
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: 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: 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 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 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-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: 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-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-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 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: 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: tom t. <j_l...@ya...> - 2007-03-07 23:26:00
|
Hi Alex, I decided to keep the following so that user can manually add any xml with any name inside any folder. Hope there is no issues with this? <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> --- Alex Vigdor <al...@bi...> wrote: > If you just want an index in a new folder, you > should have the user > create an instance of a doctype "/**/index.xml". > This will > automatically create the enclosing folder. You can > even label the > 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="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/ > > > > > ------------------------------------------------------------------------- > 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-08 13:20:18
|
You can configure it however you like, but if you want index pages in =20= new directories you can have both doctypes <xml-doctype create=3D"manual" definition=3D"" label=3D"Page" path=3D"/**/*.xml" root=3D"html"> <output basedir=3D"/plain/" content-type=3D"text/html"> <transform source=3D"/config/skins/plain/common.xsl"> <with-param name=3D"link-base" value=3D"/plain"/> </transform> </output> </xml-doctype> <xml-doctype create=3D"manual" definition=3D"" label=3D"Index Page" path=3D"/**/index.xml" root=3D"html"> <output basedir=3D"/plain/" content-type=3D"text/html"> <transform source=3D"/config/skins/plain/common.xsl"> <with-param name=3D"link-base" value=3D"/plain"/> </transform> </output> </xml-doctype> When the user is prompted for a name for an index page, it will be =20 used to name the directory that contains the index page. Cheers, Alex On Mar 7, 2007, at 6:25 PM, tom tom wrote: > Hi Alex, > > I decided to keep the following so that user can > manually add any xml with any name inside any folder. > > Hope there is no issues with this? > > > > <xml-doctype create=3D"manual" definition=3D"" > label=3D"Page" path=3D"/**/*.xml" root=3D"html"> > <output basedir=3D"/plain/" > content-type=3D"text/html"> > <transform > source=3D"/config/skins/plain/common.xsl"> > <with-param name=3D"link-base" value=3D"/plain"/> > </transform> > </output> > </xml-doctype> > > > > > --- Alex Vigdor <al...@bi...> wrote: > >> If you just want an index in a new folder, you >> should have the user >> create an instance of a doctype "/**/index.xml". >> This will >> automatically create the enclosing folder. You can >> even label the >> 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 >>> >>> >>> >>> >>> >> > ______________________________________________________________________ >> >>> ______________ >>> It's here! Your new message! >>> Get new email alerts with the free Yahoo! Toolbar. >>> >> http://tools.search.yahoo.com/toolbar/features/mail/ >>> >> >> >> > ----------------------------------------------------------------------=20= > --- >> 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?=20 > page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV >> _______________________________________________ >> Hypercontent-users mailing list >> Hyp...@li... >> > https://lists.sourceforge.net/lists/listinfo/hypercontent-users >> > > > > > ______________________________________________________________________=20= > ______________ > Finding fabulous fares is fun. > Let Yahoo! FareChase search your favorite travel sites to find =20 > flight and hotel bargains. > http://farechase.yahoo.com/promo-generic-14795097 > |