Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SmartGWT and jBPM (or similar)

    Hi Isomorphic,

    we are currently planning a new SmartGWT application for our customers. In this we need the help of the jBPM Framework and would have to integrate it yourself. Have you already thought about an integration of jBPM (or similar)? Or can you recommend something?

    Regards,
    Timo

    WIKI: http://en.wikipedia.org/wiki/JBPM
    jBPM Homepage: http://www.jboss.org/jbpm/

    #2
    In SmartGWT 3.0 we have started on a Workflow engine inspired by BPMN but designed to handle just the client-side aspects of Workflow (eg passing data back and forth between DataSources, forms, and programmatic steps).

    It's likely this could be connected to jBPM, and many of the things you might otherwise need to build yourself would count as Feature Sponsorship.

    If this is interesting, consider using the JumpStart program to have Isomorphic build an example integration between jBPM and the new client-side Workflow engine - use the contact form linked from the services page to get started, and provide a list of specific features / interactions you'd like demonstrated, as well as ideally some BPMN diagrams for the processes you want to execute.

    Comment


      #3
      hi Isomorphic,

      that sounds very!! good, where can I find a small example (a code snippet would be enough for me already) of the "client-side aspects..." then I'll have to discuss the topic with my boss.

      with best regards
      timo

      Comment


        #4
        If you grab a 3.x build from smartclient.com/builds you'll see a package com.smartgwt.client.util.Workflow with JavaDoc. This is just for reference about the intended functionality - keep in mind this is almost untested on the SmartGWT side although the underlying SmartClient classes have been pretty well tested.

        Comment


          #5
          hi Isomorphic,

          thanks for the hint.

          My first little test case (I hope I have correctly understood the javadoc) does not work.

          Exception Message:
          $wnd.isc[scClassName] is undefined

          Has it been useful to deal with these new features, what is your opinion on it. (I know that it has not been tested properly.)

          Testcase:
          Code:
          package com.smartgwt.sample.client;
          
          import com.google.gwt.core.client.EntryPoint;
          import com.smartgwt.client.core.KeyIdentifier;
          import com.smartgwt.client.data.Record;
          import com.smartgwt.client.util.KeyCallback;
          import com.smartgwt.client.util.Page;
          import com.smartgwt.client.util.SC;
          import com.smartgwt.client.util.workflow.ScriptTask;
          
          public class BuiltInDS implements EntryPoint {
          
              public void onModuleLoad() {
                  KeyIdentifier debugKey = new KeyIdentifier();
                  debugKey.setCtrlKey(true);
                  debugKey.setKeyName("D");
          
                  Page.registerKey(debugKey, new KeyCallback() {
                      public void execute(String keyName) {
                          SC.showConsole();
                      }
                  });
                  
                  
                  ScriptTask firstTask = new ScriptTask("firstTask", "secondTask") {
                      public Object execute(Object input, Record inputRecord) {
                          return ((Double) input) + Math.random();
                      };
                  };
                  firstTask.setInputField("startAmount");
                  firstTask.setOutputField("endAmountFirstTask");
          
                  ScriptTask secondTask = new ScriptTask("secondTask") {
                      public Object execute(Object input, Record inputRecord) {
                      	return ((Double) input) + Math.random();
                      };
                  };
                  secondTask.setInputField("endAmountFirstTask");
                  secondTask.setOutputField("endAmountSecondTask");
          
                  com.smartgwt.client.util.workflow.Process process =
                      new com.smartgwt.client.util.workflow.Process() {
                      public void finished(Record state) {
                      	
                      	System.out.println("workflow finished!!!");
                      	
                      };
                  };
                  process.setElements(firstTask, secondTask);
                  Record state = new Record();
                  state.setAttribute("startAmount", 1.11);
                  process.setState(state);
                  process.start();
          
              }
          
           
          }

          DevConsole:
          Code:
          onModuleLoad() threw an exception
          
          Exception while loading module com.smartgwt.sample.client.BuiltInDS. 
          
          java.lang.reflect.InvocationTargetException 
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
          at java.lang.reflect.Method.invoke(Method.java:597) 
          at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396) 
          at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:193) 
          at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510)
          at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352) 
          at java.lang.Thread.run(Thread.java:680) 
          
          Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError): $wnd.isc[scClassName] is undefined 
          at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:237) 
          at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:132) 
          at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) 
          at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:289) 
          at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107) 
          at com.smartgwt.client.util.workflow.Process.start(Process.java) 
          at com.smartgwt.sample.client.BuiltInDS.onModuleLoad(BuiltInDS.java:53) 
          ... 9 more
          Eclipse Console:
          Code:
          [Server@e1f4bdb]: [Thread[main,5,main]]: checkRunning(false) entered
          [Server@e1f4bdb]: [Thread[main,5,main]]: checkRunning(false) exited
          [Server@e1f4bdb]: Startup sequence initiated from main() method
          [Server@e1f4bdb]: Loaded properties from [/Volumes/Macintosh HD/Users/timo/Downloads/smartgwtee-3.0/samples/built-in-ds/server.properties]
          [Server@e1f4bdb]: Initiating startup sequence...
          [Server@e1f4bdb]: Server socket opened successfully in 0 ms.
          [Server@e1f4bdb]: Database [index=0, id=0, db=file:/Volumes/Macintosh HD/Users/timo/Downloads/smartgwtee-3.0/samples/built-in-ds/war/WEB-INF/db/hsqldb/isomorphic, alias=isomorphic] opened sucessfully in 1417 ms.
          [Server@e1f4bdb]: Startup sequence completed in 1418 ms.
          [Server@e1f4bdb]: 2011-08-31 21:56:51.719 HSQLDB server 1.8.0 is online
          [Server@e1f4bdb]: To close normally, connect and execute SHUTDOWN SQL
          [Server@e1f4bdb]: From command line, use [Ctrl]+[C] to abort abruptly
          ISC: Configuring log4j from: file:/Volumes/Macintosh%20HD/Users/timo/Downloads/smartgwtee-3.0/samples/built-in-ds/war/WEB-INF/classes/log4j.isc.config.xml
          === 2011-08-31 21:56:51,996 [main] INFO  ISCInit - Isomorphic SmartClient Framework - Initializing
          === 2011-08-31 21:56:52,002 [main] INFO  ConfigLoader - Attempting to load framework.properties from CLASSPATH
          === 2011-08-31 21:56:52,107 [main] INFO  ConfigLoader - Successfully loaded framework.properties from CLASSPATH at location: jar:file:/Volumes/Macintosh%20HD/Users/timo/Downloads/smartgwtee-3.0/lib/isomorphic_core_rpc.jar!/framework.properties
          === 2011-08-31 21:56:52,107 [main] INFO  ConfigLoader - Attempting to load project.properties from CLASSPATH
          === 2011-08-31 21:56:52,108 [main] INFO  ConfigLoader - Unable to locate project.properties in CLASSPATH
          === 2011-08-31 21:56:52,112 [main] INFO  ConfigLoader - Successfully loaded isc_interfaces.properties from CLASSPATH at location: jar:file:/Volumes/Macintosh%20HD/Users/timo/Downloads/smartgwtee-3.0/lib/isomorphic_core_rpc.jar!/isc_interfaces.properties
          === 2011-08-31 21:56:52,112 [main] INFO  ConfigLoader - Attempting to load server.properties from CLASSPATH
          === 2011-08-31 21:56:52,115 [main] INFO  ConfigLoader - Successfully loaded server.properties from CLASSPATH at location: file:/Volumes/Macintosh%20HD/Users/timo/Downloads/smartgwtee-3.0/samples/built-in-ds/war/WEB-INF/classes/server.properties
          === 2011-08-31 21:56:52,120 [main] INFO  Logger - Logging system started.
          === 2011-08-31 21:56:52,120 [main] INFO  ISCInit - Isomorphic SmartClient Framework (SC_SNAPSHOT-2011-08-31/EVAL Deployment 2011-08-31) - Initialization Complete
          === 2011-08-31 21:56:52,122 [main] INFO  ISCInit - Auto-detected webRoot - using: /Volumes/Macintosh HD/Users/timo/Downloads/smartgwtee-3.0/samples/built-in-ds/war
          log4j:WARN No appenders could be found for logger (org.apache.jasper.compiler.JspRuntimeContext).
          log4j:WARN Please initialize the log4j system properly.
          === 2011-08-31 21:59:03,308 [l0-0] INFO  RequestContext - URL: '/builtinds/sc/skins/Enterprise/images/Tab/top/tab_Selected_start.png', User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:5.0.1) Gecko/20100101 Firefox/5.0.1': Moz (Gecko) with Accept-Encoding header
          === 2011-08-31 21:59:03,308 [l0-2] INFO  RequestContext - URL: '/builtinds/sc/skins/Enterprise/images/Tab/top/tab_Selected_stretch.png', User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:5.0.1) Gecko/20100101 Firefox/5.0.1': Moz (Gecko) with Accept-Encoding header
          === 2011-08-31 21:59:03,593 [l0-2] INFO  Download - done streaming: /Volumes/Macintosh HD/Users/timo/Downloads/smartgwtee-3.0/samples/built-in-ds/war/builtinds/sc/skins/Enterprise/images/Tab/top/tab_Selected_stretch.png
          === 2011-08-31 21:59:03,619 [l0-0] INFO  Download - done streaming: /Volumes/Macintosh HD/Users/timo/Downloads/smartgwtee-3.0/samples/built-in-ds/war/builtinds/sc/skins/Enterprise/images/Tab/top/tab_Selected_start.png
          === 2011-08-31 21:59:09,971 [l0-0] INFO  RequestContext - URL: '/BuiltInDS.html', User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:5.0.1) Gecko/20100101 Firefox/5.0.1': Moz (Gecko) with Accept-Encoding header
          === 2011-08-31 21:59:09,978 [l0-0] INFO  Compression - /BuiltInDS.html: 1902 -> 856 bytes
          === 2011-08-31 21:59:09,979 [l0-0] DEBUG ServletTools - setting cookie 'isc_cState' to: 'ready'
          === 2011-08-31 21:59:09,999 [l0-0] INFO  RequestContext - URL: '/builtinds/sc/DataSourceLoader', User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:5.0.1) Gecko/20100101 Firefox/5.0.1': Moz (Gecko) with Accept-Encoding header
          === 2011-08-31 21:59:10,005 [l0-2] INFO  RequestContext - URL: '/builtinds/builtinds.nocache.js', User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:5.0.1) Gecko/20100101 Firefox/5.0.1': Moz (Gecko) with Accept-Encoding header
          === 2011-08-31 21:59:10,038 [l0-2] INFO  Compression - /builtinds/builtinds.nocache.js: 7256 -> 2803 bytes
          === 2011-08-31 21:59:10,052 [l0-0] INFO  PoolManager - SmartClient pooling disabled for 'supplyItem' objects
          === 2011-08-31 21:59:10,063 [l0-2] INFO  RequestContext - URL: '/builtinds/sc/initsc.js', User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:5.0.1) Gecko/20100101 Firefox/5.0.1': Moz (Gecko) with Accept-Encoding header
          === 2011-08-31 21:59:10,067 [l0-3] INFO  RequestContext - URL: '/builtinds/sc/modules/ISC_Core.js', User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:5.0.1) Gecko/20100101 Firefox/5.0.1': Moz (Gecko) with Accept-Encoding header
          === 2011-08-31 21:59:10,071 [l0-4] INFO  RequestContext - URL: '/builtinds/sc/modules/ISC_Foundation.js', User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:5.0.1) Gecko/20100101 Firefox/5.0.1': Moz (Gecko) with Accept-Encoding header
          === 2011-08-31 21:59:10,076 [l0-6] INFO  RequestContext - URL: '/builtinds/sc/modules/ISC_Containers.js', User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:5.0.1) Gecko/20100101 Firefox/5.0.1': Moz (Gecko) with Accept-Encoding header
          === 2011-08-31 21:59:10,078 [l0-5] INFO  RequestContext - URL: '/builtinds/sc/modules/ISC_Grids.js', User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:5.0.1) Gecko/20100101 Firefox/5.0.1': Moz (Gecko) with Accept-Encoding header
          === 2011-08-31 21:59:10,099 [l0-2] INFO  Compression - /builtinds/sc/initsc.js: 47 -> 72 bytes
          === 2011-08-31 21:59:10,109 [l0-6] INFO  Compression - /builtinds/sc/modules/ISC_Containers.js: 130175 -> 30878 bytes
          === 2011-08-31 21:59:10,111 [l0-0] DEBUG XML - Parsed XML from /Volumes/Macintosh HD/Users/timo/Downloads/smartgwtee-3.0/samples/built-in-ds/war/builtinds/sc/system/schema/builtinTypes.xml: 20ms
          === 2011-08-31 21:59:10,130 [l0-4] INFO  Compression - /builtinds/sc/modules/ISC_Foundation.js: 235561 -> 55833 bytes
          === 2011-08-31 21:59:10,196 [l0-3] INFO  Compression - /builtinds/sc/modules/ISC_Core.js: 698064 -> 180858 bytes
          === 2011-08-31 21:59:10,217 [l0-2] INFO  RequestContext - URL: '/builtinds/sc/modules/ISC_Forms.js', User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:5.0.1) Gecko/20100101 Firefox/5.0.1': Moz (Gecko) with Accept-Encoding header
          === 2011-08-31 21:59:10,235 [l0-6] INFO  RequestContext - URL: '/builtinds/sc/modules/ISC_RichTextEditor.js', User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:5.0.1) Gecko/20100101 Firefox/5.0.1': Moz (Gecko) with Accept-Encoding header
          === 2011-08-31 21:59:10,237 [l0-5] INFO  Compression - /builtinds/sc/modules/ISC_Grids.js: 736157 -> 185380 bytes
          === 2011-08-31 21:59:10,242 [l0-3] INFO  RequestContext - URL: '/builtinds/sc/modules/ISC_DataBinding.js', User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:5.0.1) Gecko/20100101 Firefox/5.0.1': Moz (Gecko) with Accept-Encoding header
          === 2011-08-31 21:59:10,250 [l0-4] INFO  RequestContext - URL: '/builtinds/sc/modules/ISC_Calendar.js', User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:5.0.1) Gecko/20100101 Firefox/5.0.1': Moz (Gecko) with Accept-Encoding header
          === 2011-08-31 21:59:10,317 [l0-4] INFO  Compression - /builtinds/sc/modules/ISC_Calendar.js: 104444 -> 25177 bytes
          === 2011-08-31 21:59:10,319 [l0-6] INFO  Compression - /builtinds/sc/modules/ISC_RichTextEditor.js: 40225 -> 11199 bytes
          === 2011-08-31 21:59:10,364 [l0-0] DEBUG XML - Parsed XML from /Volumes/Macintosh HD/Users/timo/Downloads/smartgwtee-3.0/samples/built-in-ds/war/ds/supplyItem.ds.xml: 2ms
          === 2011-08-31 21:59:10,372 [l0-0] DEBUG XML - Parsed XML from /Volumes/Macintosh HD/Users/timo/Downloads/smartgwtee-3.0/samples/built-in-ds/war/builtinds/sc/system/schema/DataSource.ds.xml: 7ms
          === 2011-08-31 21:59:10,414 [l0-6] INFO  RequestContext - URL: '/builtinds/sc/skins/Enterprise/load_skin.js', User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:5.0.1) Gecko/20100101 Firefox/5.0.1': Moz (Gecko) with Accept-Encoding header
          === 2011-08-31 21:59:10,415 [l0-6] INFO  Download - done streaming: /Volumes/Macintosh HD/Users/timo/Downloads/smartgwtee-3.0/samples/built-in-ds/war/builtinds/sc/skins/Enterprise/load_skin.js
          === 2011-08-31 21:59:10,417 [l0-6] INFO  Compression - /builtinds/sc/skins/Enterprise/load_skin.js: 30116 -> 6387 bytes
          === 2011-08-31 21:59:10,419 [l0-2] INFO  Compression - /builtinds/sc/modules/ISC_Forms.js: 611331 -> 149062 bytes
          === 2011-08-31 21:59:10,421 [l0-3] INFO  Compression - /builtinds/sc/modules/ISC_DataBinding.js: 542581 -> 134440 bytes
          === 2011-08-31 21:59:10,460 [l0-0] DEBUG XML - Parsed XML from /Volumes/Macintosh HD/Users/timo/Downloads/smartgwtee-3.0/samples/built-in-ds/war/builtinds/sc/system/schema/DataSourceField.ds.xml: 6ms
          === 2011-08-31 21:59:10,494 [l0-0] DEBUG XML - Parsed XML from /Volumes/Macintosh HD/Users/timo/Downloads/smartgwtee-3.0/samples/built-in-ds/war/builtinds/sc/system/schema/ValueMap.ds.xml: 2ms
          === 2011-08-31 21:59:10,521 [l0-0] DEBUG XML - Parsed XML from /Volumes/Macintosh HD/Users/timo/Downloads/smartgwtee-3.0/samples/built-in-ds/war/builtinds/sc/system/schema/Validator.ds.xml: 2ms
          === 2011-08-31 21:59:10,923 [l0-3] INFO  RequestContext - URL: '/builtinds/sc/skins/Enterprise/skin_styles.css', User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:5.0.1) Gecko/20100101 Firefox/5.0.1': Moz (Gecko) with Accept-Encoding header
          === 2011-08-31 21:59:11,044 [l0-0] DEBUG XML - Parsed XML from /Volumes/Macintosh HD/Users/timo/Downloads/smartgwtee-3.0/samples/built-in-ds/war/ds/animals.ds.xml: 14ms
          === 2011-08-31 21:59:11,044 [l0-3] INFO  Download - done streaming: /Volumes/Macintosh HD/Users/timo/Downloads/smartgwtee-3.0/samples/built-in-ds/war/builtinds/sc/skins/Enterprise/skin_styles.css
          === 2011-08-31 21:59:11,046 [l0-3] INFO  Compression - /builtinds/sc/skins/Enterprise/skin_styles.css: 65813 -> 8767 bytes
          === 2011-08-31 21:59:11,087 [l0-0] DEBUG XML - Parsed XML from /Volumes/Macintosh HD/Users/timo/Downloads/smartgwtee-3.0/samples/built-in-ds/war/ds/employees.ds.xml: 8ms
          === 2011-08-31 21:59:11,098 [l0-0] INFO  Compression - /builtinds/sc/DataSourceLoader: 5493 -> 1104 bytes
          === 2011-08-31 21:59:11,109 [l0-0] INFO  RequestContext - URL: '/builtinds/hosted.html', User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:5.0.1) Gecko/20100101 Firefox/5.0.1': Moz (Gecko) with Accept-Encoding header
          === 2011-08-31 21:59:11,112 [l0-0] INFO  Compression - /builtinds/hosted.html: 11478 -> 4094 bytes
          === 2011-08-31 21:59:49,475 [l0-0] INFO  RequestContext - URL: '/favicon.ico', User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:5.0.1) Gecko/20100101 Firefox/5.0.1': Moz (Gecko) with Accept-Encoding header
          === 2011-08-31 21:59:49,735 [l0-0] INFO  RequestContext - URL: '/favicon.ico', User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:5.0.1) Gecko/20100101 Firefox/5.0.1': Moz (Gecko) with Accept-Encoding header
          The SmartGWT or SmartClient version and browser version(s) involved:
          SC_SNAPSHOT-2011-08-31/EVAL Deployment 2011-08-31
          'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:5.0.1) Gecko/20100101 Firefox/5.0.1'


          regards,
          Timo

          Comment


            #6
            Again as we said:

            This is just for reference about the intended functionality
            .. we don't recommend trying to build anything yet, not until it's an announced feature. The particular problem you're having is because you haven't loaded ISC_Workflow.js, but you wouldn't know this because installation hasn't been covered in the docs yet.

            Comment


              #7
              ok thanks, I'm waiting for the publication. Will there still be this year?

              Comment


                #8
                Via the JumpStart program, you can get started with this now. When the starter application is delivered, it will use these APIs and your team will get training and/or a handoff session explaining everything.

                Other than that, we don't have an exact date, but we are thinking roughly Q4.

                Comment

                Working...
                X