9 Replies Latest reply on Jul 19, 2013 11:18 AM by mariamhakobyan

    How to get SwitchYard "Service" task show up in eclipse pallete

    kita

      I installed switchyard on as7 and I trying process, but I can't find to how show Service task in my pallete.

       

      Also, how I deploy process on as7 and switchyard? I know how to do that in jboss server 5.

       

      How I can deploy jpbm console on as7?

       

      Thanks

        • 1. Re: How to get SwitchYard "Service" task show up in eclipse pallete
          rcernich

          You can take a look at the following SwitchYard quickstarts:

          • switchyard-quickstart-bpm-service (in quickstarts/bpm-service)
          • switchyard-quickstart-demo-helpdesk (in quickstarts/demos/helpdesk)

           

          For the "Service" task to appear, you need make sure your project has a dependency on org.switchyard.components:switchyard-component-bpm.

           

          You should be able to deploy your project by dropping the JAR into the AS7 deployment folder (../standalone/deployments).  If you created your project using the latest SwitchYard tooling, you should be able to deploy the project just as you would any other JEE project.  (Note, the tooling does not verify whether or not a particular server instance contains a SwitchYard runtime.)

           

          Hope that helps.

           

          Best,

          Rob

          • 2. Re: How to get SwitchYard "Service" task show up in eclipse pallete
            kcbabo

            Another way to add the apporpriate dependency to your project and to generate a new BPMN 2 process is to use the Forge tooling, e.g.:

             

            > project install-facet switchyard.bpm
            > bpm-service create --serviceName HelloWorld
            

             

            Ultimately, the Forge and Eclipse tooling complement one another and you should be able to get equivalent functionality out of either interface.  Feedback appreciated!  :-)

            1 of 1 people found this helpful
            • 3. Re: How to get SwitchYard "Service" task show up in eclipse pallete
              kita

              My other question is how to deploy jbpm console to switchyard as7, I tried but it did not work.

               

              I really appreciated both of your help.

               

              Thanks

              • 4. Re: How to get SwitchYard "Service" task show up in eclipse pallete
                kcbabo

                The jBPM console on AS7 is still a work in progress.  Kris demonstrated it was possible here:

                 

                http://kverlaen.blogspot.com/2011/07/jbpm5-on-as7-lightning.html

                 

                I think the main issue at this point is the use of JPA 1 in the console vs. JPA 2 in AS7.  There are some ways to make that work in AS7 (and David has tried them all), but it still doesn't work quite right.  For now, we are going to work toward a solution where the console can be deployed in a separate (non AS7) runtime and connected to the jBPM runtime in SwitchYard.

                 

                David - please correct me if I got any of the above wrong.

                • 5. Re: How to get SwitchYard "Service" task show up in eclipse pallete
                  kita

                  I am going try those steps.

                   

                  Thanks

                  • 6. Re: How to get SwitchYard "Service" task show up in eclipse pallete
                    dward

                    All correct.

                    • 7. Re: How to get SwitchYard "Service" task show up in eclipse pallete
                      mariamhakobyan

                      Hi,

                       

                      I am having the same problem of Switchyard custom service not being showed up in eclipse juno palette.

                      I have all the necessary plugins and tools installed in eclipse (Switchyard tools, jBPM tools, BPNM Editor).

                       

                      I simply want to create a bpmn process without any deployment or anything yet, and do not see the switchyard service task in "Custom Task" palette mentioned above, which is also specified in UserGuide (https://docs.jboss.org/author/display/SWITCHYARD/BPM).

                       

                      @Rob, I tried your suggested option - "For the "Service" task to appear, you need make sure your project has a dependency on org.switchyard.components:switchyard-component-bpm.", I imported my switchyard project into eclipse, built it, but still I do not see the corresponding "Custom Task" section and Switchyard service in palette.

                       

                      Please let me know what other configurations I should add to eclipse so I see "Switchyard Service" item in palette.

                       

                      Thanks in advance,

                      Mariam

                      • 8. Re: How to get SwitchYard "Service" task show up in eclipse pallete
                        rcernich

                        Hey Mariam,

                         

                        That documentation is a little out of date.  There are two ways to invoke a SwitchYard service from within a BPMN2 file.

                        • Standard BPMN2 ServiceTask, using SwitchYard as the implementation.
                        • "SwitchYard Service Task" wich is located in the "SwitchYard" category.  This is similar to what is currently documented.

                         

                        To use the standard ServiceTask, you will need to import the interface for the target service into your process.  Once that is done, you will be able simply select the operation using a drop list on the ServiceTask properties.

                         

                        The documentation is in the process of being updated.

                         

                        Hope that helps,

                        Rob

                        • 9. Re: How to get SwitchYard "Service" task show up in eclipse pallete
                          mariamhakobyan

                          Hi Rob,

                           

                          Regarding the second option:

                          • "SwitchYard Service Task" wich is located in the "SwitchYard" category.  This is similar to what is currently documented.

                           

                          How can I see  "SwitchYard" category in BPMN editor and should I see it in palette? Are there any special things I need to configure in eclipse?  I have Switchyard Tools installed, but still do not see it.

                           

                          Thanks,

                          Mariam