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

Shi Yusen shiys at langhua.cn
Wed Jan 30 06:54:16 CET 2008


Congratulations!

BTW, there's a jbpm plugin for eclipse which will help you to DRAW
workflows.

You can find there are some jbpm desingers in sourceforge. We also
planned to write a new jbpm designer to support draw jbpm swimlane graph
directly last year, which could help service providers to split their
business analyzers and programmers naturally. Unfortunately no time, no
money to do this, it's in our plan to do in this year. Could I get some
funds to do this from this list? :)

Regards,

Shi Yusen/Beijing Langhua Ltd.

在 2008-01-29二的 18:22 +0300,Vikrama Sanjeeva写道:
> Hi Shi:
>  
>  Thanks you so much for helping! Its working now. 
>  
> I think my eclipse enviornment for developing "opencms-compatible
> jbpm-jdl process" is now configured? What do you say? Means, I could
> define process under /process dir in eclipse, build using
> ant and finally deploy MyProcess.process in opencms?
>  
>  
> Bye
> Viki. 
>  
>  
>  
>  
>  
>  
> 
>  
> On Jan 29, 2008 3:45 PM, Shi Yusen <shiys at langhua.cn> wrote:
>         The output said you ran clean, init, initmsg, prepare and
>         compile. The
>         compile is default target.
>         
>         Run As -> Ant Build ... -> select compile-publish, and run
>         Good luck,
>         
>         Shi Yusen/Beijing Langhua Ltd.
>         
>         
>         
>         在 2008-01-29二的 14:03 +0300,Vikrama Sanjeeva写道:
>         
>         > Hi Shi:
>         >   Followed the link and got the source in my eclipse. After
>         that I
>         > deleted "auditing.process" and "websale.process" from build
>         directory
>         > in eclipse and tried to build again by clicking "Run As -
>         Ant Build"
>         > on build.xml. I got the following output on eclipse console,
>         but no
>         > ".process" files are created in /build/ directory.
>         >
>         > *************************************************build.xml
>         output
>         > START*******************************************
>         > Buildfile:
>         >
>         > C:\Documents and Settings\Administrator\workspace
>         > \OpenCms-7.0.2-jBPM-3.1.2\build.xml
>         >
>         > clean
>         >
>         > :
>         >
>         > [
>         >
>         > delete] Deleting directory C:\Documents and Settings
>         \Administrator
>         > \workspace\OpenCms-7.0.2-jBPM-3.1.2\bin
>         >
>         > init
>         >
>         > :
>         >
>         > [
>         >
>         > echo] Building jbpm-opencms 2.0.2
>         >
>         > [echo]
>         >
>         > [
>         >
>         > echo] Working directory is: C:\Documents and Settings
>         \Administrator
>         > \workspace\OpenCms-7.0.2-jBPM-3.1.2
>         >
>         > [
>         >
>         > echo] Destination directory is: C:\Documents and Settings
>         > \Administrator\workspace\OpenCms-7.0.2-jBPM-3.1.2
>         >
>         > [
>         >
>         > echo] Tomcat home is: d:\apache-tomcat-6.0.2
>         >
>         > [echo]
>         >
>         > initmsg
>         >
>         > :
>         >
>         > prepare
>         >
>         > :
>         >
>         > [
>         >
>         > mkdir] Created dir: C:\Documents and Settings\Administrator
>         \workspace
>         > \OpenCms-7.0.2-jBPM-3.1.2\bin
>         >
>         > compile
>         >
>         > :
>         >
>         > [
>         >
>         > javac] Compiling 30 source files to C:\Documents and
>         Settings
>         > \Administrator\workspace\OpenCms-7.0.2-jBPM-3.1.2\bin
>         >
>         > [
>         >
>         > javac] Note: Some input files use unchecked or unsafe
>         operations.
>         >
>         > [
>         >
>         > javac] Note: Recompile with -Xlint:unchecked for details.
>         >
>         > [
>         >
>         > copy] Copying 4 files to C:\Documents and Settings
>         \Administrator
>         > \workspace\OpenCms-7.0.2-jBPM-3.1.2\bin
>         >
>         > BUILD SUCCESSFUL
>         >
>         > Total time: 3 seconds
>         >
>         > *************************************************build.xml
>         output
>         > END*******************************************
>         >
>         > Kindly advise. What am I missing now?
>         >
>         > Thank you!!
>         >
>         > Bye,
>         > Viki.
>         >
>         >
>         >
>         > On Jan 29, 2008 12:13 PM, Shi Yusen <shiys at langhua.cn>
>         wrote:
>         >         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
>         >
>         >
>         >         _______________________________________________
>         >         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