[opencms-dev] defining process in jBPM-OpenCms?

Shi Yusen shiys at langhua.cn
Tue Jan 29 10:13:48 CET 2008


Here is a howto:
http://sourceforge.net/cvs/?group_id=166365

In brief, use anonymous to login.

Regards,

Shi Yusen/Beijing Langhua Ltd.


在 2008-01-29二的 11:06 +0300,Vikrama Sanjeeva写道:
> Hi Shi,
>  
>   Is there any username/password for your CVS repository?
>  
> Thanks
>  
> Bye,
> Viki.
> 
> 
> On Jan 28, 2008 5:13 PM, Shi Yusen <shiys at langhua.cn> wrote:
>         The publish process is here:
>         http://jbpm-opencms.cvs.sourceforge.net/jbpm-opencms/OpenCms-7.0.2-jBPM-3.1.2/processes/publish/
>         You can use cvs client in Eclipse to download the source code.
>         
>         You can add your process target in you build.xml, see this as
>         a sample:
>         http://jbpm-opencms.cvs.sourceforge.net/jbpm-opencms/OpenCms-7.0.2-jBPM-3.1.2/build.xml?view=markup
>         >From line 141-155 is the compile-publish target which compile
>         and zip
>         the publish.process.
>         
>         You can do all of these in your Eclipse.
>         
>         Regards,
>         
>         Shi Yusen/Beijing Langhua Ltd.
>         
>         
>         在 2008-01-28一的 15:29 +0300,Vikrama Sanjeeva写道:
>         
>         > Hi Shi:
>         >
>         >    After unzipping your sample publish.process, I found
>         following
>         > dir/files in it:
>         >
>         > classes
>         > gpd.xml
>         > processdefinition.xml
>         > processimage.jpg
>         >
>         > "classes" conatins class files in package:
>         > "cn.langhua.opencms.jbpm.publish"
>         >
>         > Then I copied the same dir/files of sample, websale process
>         from
>         > Jboss-jBPM JPDL Suite in folder and finally zipped that
>         folder manualy
>         > using win-zip tool.
>         >
>         > On deploying it in jBPM-Workflow in OpenCMS Admin: I got the
>         following
>         > error:
>         >
>         > [[ERROR] no processdefinition.xml inside process archive]
>         > org.jbpm.jpdl.JpdlException: [[ERROR] no
>         processdefinition.xml inside
>         > process archive]
>         >
>         > Then I did the same with your sample, publish.process. I
>         just unizpped
>         > it and zipped it back using winzip tool and deployed in
>         opencms Admin.
>         > I got the same above error: org.jbpm.jpdl.JpdlException:
>         [[ERROR] no
>         > processdefinition.xml inside process archive]
>         >
>         > Why it is so? Do I have to change my compressing/zipping
>         mechanism?
>         >
>         > Also, I found below script in your "processdefinition.xml".
>         You have
>         > added it in "processdefinition.xml" which I guess was not
>         there in
>         > Jboss-jBPM JPDL Suite  when you developed publish.process.
>         >
>         > ********************************SCRIPT
>         > START********************************
>         >  <script>
>         >                <expression>
>         >
>          token.addComment("rootpath=/sites/default/jbpm/");
>         >                token.addComment("createProject=true");
>         >                token.addComment("projectPrefix=publish_");
>         >
>          token.addComment("elementdefaultvisibility=write");
>         >                </expression>
>         >   </script>
>         > ********************************SCRIPT END
>         > ********************************
>         >
>         > Different script is their in "processdefinition.xml" of
>         websale which
>         > you provided as a sample in "jBPM-OpenCms".
>         >
>         > What am I missing?
>         >
>         > Your prompt reply will be highly appreciated!
>         >
>         > Thank you.
>         >
>         > Bye,
>         > Viki.
>         >
>         >
>         >
>         >
>         >
>         >
>         > On Jan 28, 2008 12:34 PM, Shi Yusen <shiys at langhua.cn>
>         wrote:
>         >         Glad you reached at this step. The process file is a
>         zip file.
>         >         Try to
>         >         unzip to check its content.
>         >
>         >         So the answer is simple: zip it or run an ant
>         command to build
>         >         it into a
>         >         zip file, and then upload the zip file in OpenCms
>         jBPM amdin.
>         >
>         >         Kind Regards,
>         >
>         >         Shi Yusen/Beijing Langhua Ltd.
>         >
>         >
>         >         在 2008-01-28一的 11:13 +0300,Vikrama Sanjeeva写
>         道:
>         >
>         >         >
>         >         > Ok I've downloaded "JBoss jBPM JPDL Suite " and
>         found that
>         >         sample
>         >         > publish.process which comes along with
>         jBPM-openCMS is
>         >         developed in
>         >         > same suite. Now my problem is that, once I've
>         defined a
>         >         process in JDL
>         >         > suite, how I will import/upload that in
>         jBPM-OpemCMS
>         >         workflow? I know
>         >         > there is a button in openCMS Admin for uploading
>         process
>         >         definition.
>         >         > But I want to know (after defining porcess in
>         >         JBoss-jBPM-eclipse) how
>         >         > it will be exported from eclipse and then imported
>         in
>         >         opencms?
>         >         >
>         >         >  I m looking for urgent help in this regard.!!
>         >         >
>         >         > Thank you!
>         >         >
>         >         > Bye,
>         >         > Viki.
>         >         >
>         >         >
>         >         > On Jan 26, 2008 10:14 PM, Vikrama Sanjeeva
>         >         <viki.sanjeeva at gmail.com>
>         >         > wrote:
>         >         >         Hi,
>         >         >
>         >         >             Installed jBPM-OpenCms 3.1.2 workflow
>         in OpneCms
>         >         7.0.3.
>         >         >         Then imported sample publish.process
>         workflow in
>         >         jBPM-OpenCms
>         >         >         and tested how the process works.
>         >         >
>         >         >         Now, my question is that: How I can
>         define/create
>         >         new
>         >         >         process/workflow which I can import in
>         jBPM-OpenCms
>         >         7.0.3?
>         >         >         Does i need a "tool" for defining jBPM
>         workflows?
>         >         >
>         >         >         Please advise!
>         >         >
>         >         >         Bye,
>         >         >         Viki.
>         >         >
>         >
>         >         > _______________________________________________
>         >         > This mail is sent to you from the opencms-dev
>         mailing list
>         >         > To change your list options, or to unsubscribe
>         from the
>         >         list, please visit
>         >         >
>         http://lists.opencms.org/mailman/listinfo/opencms-dev
>         >
>         >
>         >         _______________________________________________
>         >         This mail is sent to you from the opencms-dev
>         mailing list
>         >         To change your list options, or to unsubscribe from
>         the list,
>         >         please visit
>         >
>         http://lists.opencms.org/mailman/listinfo/opencms-dev
>         >
>         > _______________________________________________
>         > This mail is sent to you from the opencms-dev mailing list
>         > To change your list options, or to unsubscribe from the
>         list, please visit
>         > http://lists.opencms.org/mailman/listinfo/opencms-dev
>         
>         
>         _______________________________________________
>         This mail is sent to you from the opencms-dev mailing list
>         To change your list options, or to unsubscribe from the list,
>         please visit
>         http://lists.opencms.org/mailman/listinfo/opencms-dev
> 
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev




More information about the opencms-dev mailing list