Eclipse

I do not know if you used any IDE, but in eclipse you can switch to the debug mode, and change between the different threads. In each thread you can see the stack trace.

The configuration is done in the file "server.xml" (it is in the installed server's config directory, which you can find under "Servers" in your project explorer in Eclipse), in the element "Resource" (under element "GlobalNamingResources").

Technology:

Creating a Custom WorkItemHandler in jBPM for Eclipse

Assuming you have Eclipse and the jbpm dependencies installed correctly via maven you can create custom work items with the following steps:

#1 Under src/main/resources/ in your eclipse project create a file called "CustomWorkItem.wid" where you put your custom workitem definition:

import org.drools.process.core.datatype.impl.type.StringDataType;

[
[
"name" : "CustomWorkItem",
"parameters" : [
"keywords" : new StringDataType(),
"limit" : new StringDataType()
],
"displayName" : "CustomWorkItem"
]
]

#2 Create another file called "drools.rulebase.conf" in the same directory where you register your custom workitem definition like so:

drools.workDefinitions = CustomWorkItem.wid WorkDefinitions.conf

#3 Create a java class that implements the Interface "WorkItemHandler" from the package "org.kie.api.runtime.process.WorkItemHandler". You will get the following two method stubs from the interface:

public void abortWorkItem(WorkItem workItem, WorkItemManager manager) { }

public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { }

The executeWorkItem method will be called by the bpm engine when the business process reaches your custom work item handler.

#4 Register your custom WorktItemHandler class with the bpm engine:

kSession.getWorkItemManager().registerWorkItemHandler("CustomWorkItem", new CustomWorkItemHandler());

Note that the first parameter should match the name from the work item definition and the second parameter should be a new instance of your custom work itemhandler java class created in step #3.

#5 Restart eclipse and use the new custom work item as a task in your business process!

Find a tool to support BDD in Java environment

Behavior-driven development is a specialized version of test-driven development which focuses on behavioral specification of software units. Acceptance tests are written using the standard agile framework of a User story: "As a [role] I want [feature] so that [benefit]". Acceptance criteria should be written in terms of scenarios and implemented as classes: Given [initial context], when [event occurs], then [ensure some outcomes]. The goal is to find a tool for the Java environment to support the writing of scenarios, support for creating the java classes and methods for a scenario step.

Taggings:

How to collaborate on a Java project

When working in team on a Java project, we want to be able to contribute to the code, even though sitting in different locations. The changes to the code should be synchronized, and it should be possible to comment on the recent changes.

Install Egit on remote client

I have a description how to install Egit on Eclipse on a client. According to the description I have done the following: .) started Eclipse .) selected Help -> Install New Software ... .) In "Work with:" selected "--All Available Sites--" .) in the filter field entered "egit" Nothing to select appears as the client is obviously not connected to the site. There might be the following solution, but I could not try it up to now: .) Get the addressof the site with the software. .) If this can be used in the "Add ..." function, I might have done. .) Otherwise I perhaps can download the software to a local directory and use this directory an the "Add ..." function.

Automatic upload - Eclipse - FTP server

Eclipse is an IDE for implementation of applications in different programming languages. During the programing of an PHP web application it must be first deployed to the server in order to run it. It is possible to configure Eclipse to run a PHP program on local server, but sometimes it is necessary to implement the program locally and run it on a remote web server (because of the tweaking of the application or other reasons). We want to make the process of uploading of the PHP files to the appropriate folder on the remote FTP server automatic. The particular file should be uploaded after each save on the local disk.

Installing JBoss on Eclipse

The easiest way to get started with JBoss Tools is to use JBoss Developer Studio, which includes an installer for JBoss Tools and all its requirements. Choose one of these versions:

 If you already use Eclipse, you can install the JBoss Tools plugins into your existing Fedora Eclipse 3.4Eclipse 3.4.2Eclipse Ganymede JEE SR2 Bundle (also here), or Eclipse Ganymede BIRT bundleusing these update sites.See the complete list here or here In order to resolve all the requirements, you may need to add or enable the both of the following other update sites within Eclipse.

 That's it!

Taggings:

Creating a new Seam Web Project using Eclipse

<p>First of all, I would like to give you a short information about JBoss Seam. JBoss Seam is a powerful new application framework for building next generation Web 2.0 applications by unifying and integrating technologies such as Asynchronous JavaScript and XML (AJAX), Java Server Faces (JSF), Enterprise Java Beans (EJB3), Java Portlets and Business Process Management (BPM). Seam has been designed from the ground up to eliminate complexity at the architecture and the API level. It enables developers to assemble complex web applications with simple annotated Plain Old Java Objects (POJOs), componentized UI widgets and very little XML. The simplicity of Seam will enable easy integration with the JBoss Enterprise Service Bus (ESB) and Java Business Integration (JBI) in the future.</p>

Installing JBoss Tools on Eclipse

<p>My aim is to figure out how should JBoss Tools be installed on Eclipse IDE. I guess probably most of you know already Eclipse IDE and possibly heard about JBoss Tools. As we are going to develop some Rich Internet Application, I need your advice for my statement.</p>
Subscribe to Eclipse