Author: heiko.braun(a)jboss.com
Date: 2009-07-01 11:51:47 -0400 (Wed, 01 Jul 2009)
New Revision: 5180
Modified:
projects/gwt-console/trunk/server/server-core/src/main/java/org/jboss/bpm/console/server/ProcessMgmtFacade.java
Log:
Access process instance data
Modified:
projects/gwt-console/trunk/server/server-core/src/main/java/org/jboss/bpm/console/server/ProcessMgmtFacade.java
===================================================================
---
projects/gwt-console/trunk/server/server-core/src/main/java/org/jboss/bpm/console/server/ProcessMgmtFacade.java 2009-07-01
15:48:36 UTC (rev 5179)
+++
projects/gwt-console/trunk/server/server-core/src/main/java/org/jboss/bpm/console/server/ProcessMgmtFacade.java 2009-07-01
15:51:47 UTC (rev 5180)
@@ -22,10 +22,6 @@
package org.jboss.bpm.console.server;
import com.google.gson.Gson;
-import org.apache.commons.fileupload.FileItem;
-import org.apache.commons.fileupload.FileItemFactory;
-import org.apache.commons.fileupload.disk.DiskFileItemFactory;
-import org.apache.commons.fileupload.servlet.ServletFileUpload;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jboss.bpm.console.client.model.*;
@@ -188,15 +184,9 @@
String instanceId
)
{
- StringBuffer sb = new StringBuffer(); // TODO: Document builder could be used
- sb.append("<dataset
ref='").append(instanceId).append("'>");
Map<String, Object> javaPayload =
getProcessManagement().getInstanceData(instanceId);
Payload2XML payload2XML = new Payload2XML();
- sb.append(
- payload2XML.convert(instanceId, javaPayload)
- );
- sb.append("</dataset>");
-
+ StringBuffer sb = payload2XML.convert(instanceId, javaPayload);
return Response.ok(sb.toString()).build();
}
Show replies by date