JBoss JBPM SVN: r4795 - jbpm4/trunk/modules/integration/console/src/main/java/org/jbpm/integration/console.
by do-not-reply@jboss.org
Author: heiko.braun(a)jboss.com
Date: 2009-05-12 11:07:04 -0400 (Tue, 12 May 2009)
New Revision: 4795
Modified:
jbpm4/trunk/modules/integration/console/src/main/java/org/jbpm/integration/console/ModelAdaptor.java
Log:
fix participant isGroup attribute
Modified: jbpm4/trunk/modules/integration/console/src/main/java/org/jbpm/integration/console/ModelAdaptor.java
===================================================================
--- jbpm4/trunk/modules/integration/console/src/main/java/org/jbpm/integration/console/ModelAdaptor.java 2009-05-12 15:05:16 UTC (rev 4794)
+++ jbpm4/trunk/modules/integration/console/src/main/java/org/jbpm/integration/console/ModelAdaptor.java 2009-05-12 15:07:04 UTC (rev 4795)
@@ -131,12 +131,12 @@
if(p0.getGroupId()!=null)
{
ParticipantRef participant = new ParticipantRef("candidate", p0.getGroupId());
+ participant.setGroup(true);
task.getParticipantGroups().add(participant);
}
else if(p0.getUserId()!=null)
{
ParticipantRef participant = new ParticipantRef("candidate", p0.getUserId());
- participant.setGroup(true);
task.getParticipantUsers().add(participant);
}
else
16 years, 11 months
JBoss JBPM SVN: r4794 - in projects/gwt-console/trunk/gui/war/src/main: resources/org/jboss/bpm/console/public and 1 other directory.
by do-not-reply@jboss.org
Author: heiko.braun(a)jboss.com
Date: 2009-05-12 11:05:16 -0400 (Tue, 12 May 2009)
New Revision: 4794
Modified:
projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/AssignedTasksView.java
projects/gwt-console/trunk/gui/war/src/main/resources/org/jboss/bpm/console/public/console.css
Log:
Fix JBPM-2244: Task UI window references wrong URL
Modified: projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/AssignedTasksView.java
===================================================================
--- projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/AssignedTasksView.java 2009-05-12 12:48:49 UTC (rev 4793)
+++ projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/AssignedTasksView.java 2009-05-12 15:05:16 UTC (rev 4794)
@@ -38,8 +38,10 @@
import org.jboss.bpm.console.client.task.events.TaskIdentityEvent;
import org.jboss.bpm.console.client.task.events.DetailViewEvent;
import org.jboss.bpm.console.client.util.WindowUtil;
+import org.jboss.bpm.console.client.util.ConsoleLog;
import java.util.List;
+import java.util.Date;
/**
* @author Heiko.Braun <heiko.braun(a)jboss.com>
@@ -78,7 +80,8 @@
listBox =
new ListBox<TaskRef>(
new String[] {
- "Task ID", "Name", "Assignee"}
+ "Priority", "Name", "Due Date"
+ }
);
@@ -87,13 +90,13 @@
TaskRef item) {
switch (column) {
case 0:
- listBox.setText(row, column, String.valueOf(item.getId()));
+ listBox.setText(row, column, String.valueOf(item.getPriority()));
break;
case 1:
listBox.setText(row, column, item.getName());
break;
case 2:
- listBox.setText(row, column, item.getAssignee());
+ listBox.setText(row, column, String.valueOf( item.getDueDate()));
break;
default:
throw new RuntimeException("Unexpected column size");
@@ -232,10 +235,17 @@
});
// iframe
- frame = new Frame();
- frame.setUrl(task.getUrl());
+ frame = new Frame();
DOM.setStyleAttribute(frame.getElement(), "border", "none");
+ // https://jira.jboss.org/jira/browse/JBPM-2244
+ frame.getElement().setId(
+ String.valueOf( new Date().getTime())
+ );
+
+ ConsoleLog.debug(frame.getElement().toString());
+ frame.setUrl(task.getUrl());
+
windowPanel.setWidget(frame);
WindowUtil.addMaximizeButton(windowPanel, Caption.CaptionRegion.RIGHT);
@@ -263,7 +273,7 @@
{
if(TaskRef.STATE.ASSIGNED ==task.getCurrentState())
model.add(task);
- }
+ }
}
}
Modified: projects/gwt-console/trunk/gui/war/src/main/resources/org/jboss/bpm/console/public/console.css
===================================================================
--- projects/gwt-console/trunk/gui/war/src/main/resources/org/jboss/bpm/console/public/console.css 2009-05-12 12:48:49 UTC (rev 4793)
+++ projects/gwt-console/trunk/gui/war/src/main/resources/org/jboss/bpm/console/public/console.css 2009-05-12 15:05:16 UTC (rev 4794)
@@ -5,6 +5,7 @@
.bpm-header {
background-color:#ffffff;
+ /*background-color:#4a5d75;*/
background-image: url( images/Jbpm_logo_small.png);
background-repeat:no-repeat;
}
16 years, 11 months
JBoss JBPM SVN: r4793 - in projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client: task and 1 other directory.
by do-not-reply@jboss.org
Author: heiko.braun(a)jboss.com
Date: 2009-05-12 08:48:49 -0400 (Tue, 12 May 2009)
New Revision: 4793
Added:
projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/InstanceDetailView.java
projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/ProcessDetailView.java
projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/UpdateInstanceDetailAction.java
projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/UpdateProcessDetailAction.java
Modified:
projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/DefinitionListView.java
projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/InstanceListView.java
projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/AssignedTasksView.java
projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/OpenTasksView.java
projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/TaskDetailView.java
Log:
Fix JBPM-2218: Closing the task form window should refresh the task list. Also added process definition and instance detail properties
Modified: projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/DefinitionListView.java
===================================================================
--- projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/DefinitionListView.java 2009-05-12 10:45:58 UTC (rev 4792)
+++ projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/DefinitionListView.java 2009-05-12 12:48:49 UTC (rev 4793)
@@ -32,9 +32,7 @@
import org.gwt.mosaic.ui.client.ToolBar;
import org.gwt.mosaic.ui.client.ToolButton;
import org.gwt.mosaic.ui.client.MessageBox;
-import org.gwt.mosaic.ui.client.layout.BoxLayout;
-import org.gwt.mosaic.ui.client.layout.BoxLayoutData;
-import org.gwt.mosaic.ui.client.layout.LayoutPanel;
+import org.gwt.mosaic.ui.client.layout.*;
import org.gwt.mosaic.ui.client.list.DefaultListModel;
import org.jboss.bpm.console.client.model.ProcessDefinitionRef;
import org.jboss.bpm.console.client.LazyPanel;
@@ -83,7 +81,7 @@
listBox =
new ListBox<ProcessDefinitionRef>(
new String[] {
- "Process ID", "Name", "Key", "Version"}
+ "Process ID", "Version", "Name"}
);
@@ -95,14 +93,11 @@
listBox.setText(row, column, item.getId());
break;
case 1:
- listBox.setText(row, column, item.getName());
+ listBox.setText(row, column, String.valueOf(item.getVersion()));
break;
case 2:
- listBox.setText(row, column, item.getKey());
+ listBox.setText(row, column, item.getName());
break;
- case 3:
- listBox.setText(row, column, String.valueOf(item.getVersion()));
- break;
default:
throw new RuntimeException("Unexpected column size");
}
@@ -116,13 +111,32 @@
int index = listBox.getSelectedIndex();
if(index!=-1)
{
+ ProcessDefinitionRef item = listBox.getItem(index);
+
+ // update details
controller.handleEvent(
+ new Event(UpdateProcessDetailAction.ID, item)
+ );
+
+ // load instances
+ controller.handleEvent(
new Event(
LoadInstancesAction.ID,
- listBox.getItem( index )
+ item
)
);
}
+ else
+ {
+ if(isInitialized())
+ {
+ // update details
+ controller.handleEvent(
+ new Event(UpdateProcessDetailAction.ID, null)
+ );
+ }
+ }
+
}
});
@@ -158,9 +172,9 @@
ProcessDefinitionRef definitionRef = getSelection();
if(definitionRef!=null)
{
- controller.handleEvent(
- new Event(DeleteDefinitionAction.ID, definitionRef)
- );
+ controller.handleEvent(
+ new Event(DeleteDefinitionAction.ID, definitionRef)
+ );
}
else
{
@@ -170,14 +184,24 @@
}
)
);
-
+
toolBox.add(toolBar, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
this.definitionList.add(toolBox, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
this.definitionList.add(listBox, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));
- this.add(definitionList);
+ // layout
+ LayoutPanel layout = new LayoutPanel(new BorderLayout());
+ layout.add(definitionList, new BorderLayoutData(BorderLayout.Region.CENTER));
+ // details
+ ProcessDetailView detailsView = new ProcessDetailView();
+ controller.addView(ProcessDetailView.ID, detailsView);
+ controller.addAction(UpdateProcessDetailAction.ID, new UpdateProcessDetailAction());
+ layout.add(detailsView, new BorderLayoutData(BorderLayout.Region.SOUTH));
+
+ this.add(layout);
+
isInitialized = true;
}
}
Added: projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/InstanceDetailView.java
===================================================================
--- projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/InstanceDetailView.java (rev 0)
+++ projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/InstanceDetailView.java 2009-05-12 12:48:49 UTC (rev 4793)
@@ -0,0 +1,79 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.bpm.console.client.process;
+
+import com.mvc4g.client.Controller;
+import com.mvc4g.client.ViewInterface;
+import org.gwt.mosaic.ui.client.CaptionLayoutPanel;
+import org.jboss.bpm.console.client.common.PropertyGrid;
+import org.jboss.bpm.console.client.model.ProcessInstanceRef;
+
+/**
+ * @author Heiko.Braun <heiko.braun(a)jboss.com>
+ */
+public class InstanceDetailView extends CaptionLayoutPanel implements ViewInterface
+{
+ public final static String ID = ProcessDetailView.class.getName();
+
+ private Controller controller;
+
+ private PropertyGrid grid;
+
+ private ProcessInstanceRef currentInstance;
+
+ public InstanceDetailView()
+ {
+ super("Instance details");
+ super.setStyleName("bpm-detail-panel");
+
+ grid = new PropertyGrid(
+ new String[] {"ID:", "Key:", "State", "Start Date:"}
+ );
+
+ this.add(grid);
+ }
+
+ public void setController(Controller controller)
+ {
+ this.controller = controller;
+ }
+
+ public void update(ProcessInstanceRef instance)
+ {
+ this.currentInstance = instance;
+
+ String[] values = new String[] {
+ instance.getId(),
+ instance.getKey(),
+ String.valueOf( instance.getState() ),
+ String.valueOf( instance.getStartDate() )
+ };
+
+ grid.update(values);
+ }
+
+ public void clear()
+ {
+ grid.clear();
+ this.currentInstance = null;
+ }
+}
Modified: projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/InstanceListView.java
===================================================================
--- projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/InstanceListView.java 2009-05-12 10:45:58 UTC (rev 4792)
+++ projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/InstanceListView.java 2009-05-12 12:48:49 UTC (rev 4793)
@@ -21,25 +21,22 @@
*/
package org.jboss.bpm.console.client.process;
+import com.google.gwt.core.client.GWT;
+import com.google.gwt.user.client.ui.ChangeListener;
import com.google.gwt.user.client.ui.ClickListener;
import com.google.gwt.user.client.ui.Widget;
-import com.google.gwt.core.client.GWT;
import com.mvc4g.client.Controller;
-import com.mvc4g.client.ViewInterface;
import com.mvc4g.client.Event;
import org.gwt.mosaic.ui.client.ListBox;
+import org.gwt.mosaic.ui.client.MessageBox;
import org.gwt.mosaic.ui.client.ToolBar;
import org.gwt.mosaic.ui.client.ToolButton;
-import org.gwt.mosaic.ui.client.MessageBox;
-import org.gwt.mosaic.ui.client.layout.BoxLayout;
-import org.gwt.mosaic.ui.client.layout.BoxLayoutData;
-import org.gwt.mosaic.ui.client.layout.LayoutPanel;
+import org.gwt.mosaic.ui.client.layout.*;
import org.gwt.mosaic.ui.client.list.DefaultListModel;
+import org.jboss.bpm.console.client.common.AbstractView;
+import org.jboss.bpm.console.client.icons.ConsoleIconBundle;
import org.jboss.bpm.console.client.model.ProcessDefinitionRef;
import org.jboss.bpm.console.client.model.ProcessInstanceRef;
-import org.jboss.bpm.console.client.LazyPanel;
-import org.jboss.bpm.console.client.icons.ConsoleIconBundle;
-import org.jboss.bpm.console.client.common.AbstractView;
import java.util.List;
@@ -108,6 +105,32 @@
}
});
+ listBox.addChangeListener(new ChangeListener()
+ {
+ public void onChange(Widget widget)
+ {
+ int index = listBox.getSelectedIndex();
+ if(index!=-1)
+ {
+ ProcessInstanceRef item = listBox.getItem(index);
+
+ // update details
+ controller.handleEvent(
+ new Event(UpdateInstanceDetailAction.ID, item)
+ );
+ }
+ else
+ {
+ if(isInitialized()) // first call don't have a controller association
+ {
+ controller.handleEvent(
+ new Event(UpdateInstanceDetailAction.ID, null)
+ );
+ }
+ }
+
+ }
+ });
// toolbar
final LayoutPanel toolBox = new LayoutPanel();
toolBox.setPadding(0);
@@ -183,8 +206,18 @@
if(this.cachedInstances!=null)
bindData(this.cachedInstances);
- this.add(instanceList);
+ // layout
+ LayoutPanel layout = new LayoutPanel(new BorderLayout());
+ layout.add(instanceList, new BorderLayoutData(BorderLayout.Region.CENTER));
+ // details
+ InstanceDetailView detailsView = new InstanceDetailView();
+ controller.addView(InstanceDetailView.ID, detailsView);
+ controller.addAction(UpdateInstanceDetailAction.ID, new UpdateInstanceDetailAction());
+ layout.add(detailsView, new BorderLayoutData(BorderLayout.Region.SOUTH));
+
+ this.add(layout);
+
isInitialized = true;
}
Added: projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/ProcessDetailView.java
===================================================================
--- projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/ProcessDetailView.java (rev 0)
+++ projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/ProcessDetailView.java 2009-05-12 12:48:49 UTC (rev 4793)
@@ -0,0 +1,80 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.bpm.console.client.process;
+
+import com.mvc4g.client.ViewInterface;
+import com.mvc4g.client.Controller;
+import org.jboss.bpm.console.client.common.PropertyGrid;
+import org.jboss.bpm.console.client.model.ProcessDefinitionRef;
+import org.gwt.mosaic.ui.client.CaptionLayoutPanel;
+
+/**
+ * @author Heiko.Braun <heiko.braun(a)jboss.com>
+ */
+public class ProcessDetailView extends CaptionLayoutPanel implements ViewInterface
+{
+ public final static String ID = ProcessDetailView.class.getName();
+
+ private Controller controller;
+
+ private PropertyGrid grid;
+
+ private ProcessDefinitionRef currentProcess;
+
+ public ProcessDetailView()
+ {
+ super("Process details");
+ super.setStyleName("bpm-detail-panel");
+
+ grid = new PropertyGrid(
+ new String[] {"ID:", "Key:", "Name:", "Package:", "Description:"}
+ );
+
+ this.add(grid);
+ }
+
+ public void setController(Controller controller)
+ {
+ this.controller = controller;
+ }
+
+ public void update(ProcessDefinitionRef process)
+ {
+ this.currentProcess = process;
+
+ String[] values = new String[] {
+ process.getId(),
+ process.getKey(),
+ process.getName(),
+ process.getPackageName(),
+ process.getDescription()
+ };
+
+ grid.update(values);
+ }
+
+ public void clear()
+ {
+ grid.clear();
+ this.currentProcess = null;
+ }
+}
Added: projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/UpdateInstanceDetailAction.java
===================================================================
--- projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/UpdateInstanceDetailAction.java (rev 0)
+++ projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/UpdateInstanceDetailAction.java 2009-05-12 12:48:49 UTC (rev 4793)
@@ -0,0 +1,45 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.bpm.console.client.process;
+
+import com.mvc4g.client.ActionInterface;
+import com.mvc4g.client.Controller;
+import org.jboss.bpm.console.client.model.ProcessInstanceRef;
+
+/**
+ * @author Heiko.Braun <heiko.braun(a)jboss.com>
+ */
+public class UpdateInstanceDetailAction implements ActionInterface
+{
+ public final static String ID = UpdateInstanceDetailAction.class.getName();
+
+ public void execute(Controller controller, Object object)
+ {
+ ProcessInstanceRef instance = object!=null ? (ProcessInstanceRef)object : null;
+ InstanceDetailView view = (InstanceDetailView)controller.getView(InstanceDetailView.ID);
+
+ if(instance!=null)
+ view.update(instance);
+ else
+ view.clear();
+ }
+}
Added: projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/UpdateProcessDetailAction.java
===================================================================
--- projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/UpdateProcessDetailAction.java (rev 0)
+++ projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/UpdateProcessDetailAction.java 2009-05-12 12:48:49 UTC (rev 4793)
@@ -0,0 +1,45 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.bpm.console.client.process;
+
+import com.mvc4g.client.ActionInterface;
+import com.mvc4g.client.Controller;
+import org.jboss.bpm.console.client.model.ProcessDefinitionRef;
+
+/**
+ * @author Heiko.Braun <heiko.braun(a)jboss.com>
+ */
+public class UpdateProcessDetailAction implements ActionInterface
+{
+ public final static String ID = UpdateProcessDetailAction.class.getName();
+
+ public void execute(Controller controller, Object object)
+ {
+ ProcessDefinitionRef process = object!=null ? (ProcessDefinitionRef)object : null;
+ ProcessDetailView view = (ProcessDetailView)controller.getView(ProcessDetailView.ID);
+
+ if(process!=null)
+ view.update(process);
+ else
+ view.clear();
+ }
+}
Modified: projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/AssignedTasksView.java
===================================================================
--- projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/AssignedTasksView.java 2009-05-12 10:45:58 UTC (rev 4792)
+++ projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/AssignedTasksView.java 2009-05-12 12:48:49 UTC (rev 4793)
@@ -113,6 +113,12 @@
new Event(UpdateDetailsAction.ID, new DetailViewEvent("AssignedDetailView", task))
);
}
+ else
+ {
+ controller.handleEvent(
+ new Event(UpdateDetailsAction.ID, new DetailViewEvent("AssignedDetailView", null))
+ );
+ }
}
}
);
@@ -143,7 +149,7 @@
public void onClick(Widget sender) {
TaskRef selection = getSelection();
-
+
if(selection!=null)
{
if(selection.getUrl()!=null && !selection.getUrl().equals(""))
@@ -208,14 +214,16 @@
windowPanel = new WindowPanel(task.getName());
windowPanel.setAnimationEnabled(true);
windowPanel.setSize("320px", "240px");
-
+
windowPanel.addWindowCloseListener(new WindowCloseListener() {
public void onWindowClosed() {
- windowPanel = null;
- frame = null;
controller.handleEvent(
- new Event(LoadTasksAction.ID, null)
+ new Event(LoadTasksAction.ID, getAssignedIdentity())
);
+
+ windowPanel = null;
+ frame = null;
+
}
public String onWindowClosing() {
@@ -229,7 +237,7 @@
DOM.setStyleAttribute(frame.getElement(), "border", "none");
windowPanel.setWidget(frame);
-
+
WindowUtil.addMaximizeButton(windowPanel, Caption.CaptionRegion.RIGHT);
WindowUtil.addMinimizeButton(windowPanel, Caption.CaptionRegion.RIGHT);
Modified: projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/OpenTasksView.java
===================================================================
--- projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/OpenTasksView.java 2009-05-12 10:45:58 UTC (rev 4792)
+++ projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/OpenTasksView.java 2009-05-12 12:48:49 UTC (rev 4793)
@@ -112,10 +112,19 @@
new Event(UpdateDetailsAction.ID, new DetailViewEvent("OpenDetailView", task))
);
}
+ else
+ {
+ if(isInitialized())
+ {
+ controller.handleEvent(
+ new Event(UpdateDetailsAction.ID, new DetailViewEvent("OpenDetailView", null))
+ );
+ }
+ }
}
}
);
-
+
// toolbar
final LayoutPanel toolBox = new LayoutPanel();
toolBox.setPadding(0);
@@ -143,7 +152,7 @@
TaskRef selection = getSelection();
if(selection!=null)
- {
+ {
controller.handleEvent(
new Event(
ClaimTaskAction.ID,
Modified: projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/TaskDetailView.java
===================================================================
--- projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/TaskDetailView.java 2009-05-12 10:45:58 UTC (rev 4792)
+++ projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/TaskDetailView.java 2009-05-12 12:48:49 UTC (rev 4793)
@@ -24,14 +24,13 @@
import com.mvc4g.client.Controller;
import com.mvc4g.client.ViewInterface;
import org.gwt.mosaic.ui.client.CaptionLayoutPanel;
-import org.gwt.mosaic.ui.client.layout.LayoutPanel;
import org.jboss.bpm.console.client.common.PropertyGrid;
import org.jboss.bpm.console.client.model.TaskRef;
/**
* @author Heiko.Braun <heiko.braun(a)jboss.com>
*/
-public class TaskDetailView extends LayoutPanel implements ViewInterface
+public class TaskDetailView extends CaptionLayoutPanel implements ViewInterface
{
public final static String ID = TaskDetailView.class.getName();
@@ -45,18 +44,18 @@
public TaskDetailView(boolean openView)
{
+
+ // render
+ super("Task details");
+ super.setStyleName("bpm-detail-panel");
+
this.openView = openView;
- // render
- CaptionLayoutPanel panel = new CaptionLayoutPanel("Task details");
- panel.setStyleName("bpm-detail-panel");
grid = new PropertyGrid(
new String[] {"ID:", "Name:", "Description:"}
);
- panel.add(grid);
-
- this.add(panel);
+ this.add(grid);
}
public void setController(Controller controller)
16 years, 11 months
JBoss JBPM SVN: r4792 - in projects/gwt-console/trunk/gui/war/src/main: java/org/jboss/bpm/console/client/task and 2 other directories.
by do-not-reply@jboss.org
Author: heiko.braun(a)jboss.com
Date: 2009-05-12 06:45:58 -0400 (Tue, 12 May 2009)
New Revision: 4792
Added:
projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/common/PropertyGrid.java
projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/TaskDetailView.java
projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/UpdateDetailsAction.java
projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/events/DetailViewEvent.java
Modified:
projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/AssignedTasksView.java
projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/OpenTasksView.java
projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/TaskEditor.java
projects/gwt-console/trunk/gui/war/src/main/resources/org/jboss/bpm/console/public/console.css
Log:
Fix JBPM-2219: Show task priorities and duedate in console
Added: projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/common/PropertyGrid.java
===================================================================
--- projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/common/PropertyGrid.java (rev 0)
+++ projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/common/PropertyGrid.java 2009-05-12 10:45:58 UTC (rev 4792)
@@ -0,0 +1,94 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.bpm.console.client.common;
+
+import com.google.gwt.user.client.ui.Grid;
+import com.google.gwt.user.client.ui.HTML;
+import org.gwt.mosaic.ui.client.Label;
+
+/**
+ * A simple property grid that displays name-value pairs.
+ * <br>
+ * Use styles:
+ * <ul>
+ * <li>bpm-prop-grid
+ * <li>bpm-prop-grid-label
+ * <li>bpm-prop-grid-even
+ * <li>bpm-prop-grid-odd
+ * </ul>
+ *
+ * @author Heiko.Braun <heiko.braun(a)jboss.com>
+ */
+public class PropertyGrid extends Grid
+{
+ private String[] fieldNames;
+
+ public PropertyGrid(String[] fieldDesc)
+ {
+ super(fieldDesc.length, 2);
+ this.setStyleName("bpm-prop-grid");
+ this.fieldNames = fieldDesc;
+ initReset();
+ }
+
+ private void initReset()
+ {
+ for(int i=0; i< fieldNames.length; i++)
+ {
+ Label label = new Label(fieldNames[i]);
+ label.setStyleName("bpm-prop-grid-label");
+ this.setWidget(i,0, label);
+ this.setWidget(i,1, new HTML(""));
+
+ if (i % 2 == 0)
+ {
+ // even
+ this.getRowFormatter().setStyleName(i, "bpm-prop-grid-even");
+ }
+ else
+ {
+ // odd
+ this.getRowFormatter().setStyleName(i, "bpm-prop-grid-odd");
+ }
+ }
+ }
+
+ public void clear()
+ {
+ initReset();
+ }
+
+ public void update(String[] fieldValues)
+ {
+ if(fieldValues.length!= fieldNames.length)
+ throw new IllegalArgumentException("fieldValues.length doesn't match fieldName.length: "+ fieldNames);
+
+ for(int i=0; i< fieldNames.length; i++)
+ {
+ Label label = new Label(fieldNames[i]);
+ label.setStyleName("bpm-prop-grid-label");
+ this.setWidget(i,0, label);
+ this.setWidget(i,1, new HTML(fieldValues[i]));
+ }
+ }
+
+}
Modified: projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/AssignedTasksView.java
===================================================================
--- projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/AssignedTasksView.java 2009-05-12 10:12:27 UTC (rev 4791)
+++ projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/AssignedTasksView.java 2009-05-12 10:45:58 UTC (rev 4792)
@@ -30,14 +30,13 @@
import com.google.gwt.core.client.GWT;
import com.mvc4g.client.Event;
import org.gwt.mosaic.ui.client.*;
-import org.gwt.mosaic.ui.client.layout.BoxLayout;
-import org.gwt.mosaic.ui.client.layout.BoxLayoutData;
-import org.gwt.mosaic.ui.client.layout.LayoutPanel;
+import org.gwt.mosaic.ui.client.layout.*;
import org.gwt.mosaic.ui.client.list.DefaultListModel;
import org.jboss.bpm.console.client.ApplicationContext;
import org.jboss.bpm.console.client.icons.ConsoleIconBundle;
import org.jboss.bpm.console.client.model.TaskRef;
import org.jboss.bpm.console.client.task.events.TaskIdentityEvent;
+import org.jboss.bpm.console.client.task.events.DetailViewEvent;
import org.jboss.bpm.console.client.util.WindowUtil;
import java.util.List;
@@ -54,8 +53,10 @@
private WindowPanel windowPanel;
private Frame frame;
-
- public AssignedTasksView(ApplicationContext appContext)
+
+ private TaskDetailView detailsView;
+
+ public AssignedTasksView(ApplicationContext appContext, TaskDetailView detailsView)
{
super();
this.appContext = appContext;
@@ -63,6 +64,7 @@
setTitle("Your Tasks");
setIcon(icons.userIcon());
+ this.detailsView = detailsView;
}
public void initialize()
@@ -99,17 +101,21 @@
}
});
- listBox.addChangeListener(new ChangeListener()
- {
- public void onChange(Widget widget)
- {
- int index = listBox.getSelectedIndex();
- if(index!=-1)
- {
- //
+ listBox.addChangeListener(
+ new ChangeListener() {
+
+ public void onChange(Widget widget)
+ {
+ TaskRef task = getSelection(); // first call always null?
+ if(task!=null)
+ {
+ controller.handleEvent(
+ new Event(UpdateDetailsAction.ID, new DetailViewEvent("AssignedDetailView", task))
+ );
+ }
+ }
}
- }
- });
+ );
// toolbar
final LayoutPanel toolBox = new LayoutPanel();
@@ -187,8 +193,12 @@
this.taskList.add(toolBox, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
this.taskList.add(listBox, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));
- this.add(taskList);
+ LayoutPanel layout = new LayoutPanel(new BorderLayout());
+ layout.add(taskList, new BorderLayoutData(BorderLayout.Region.CENTER));
+ layout.add(detailsView, new BorderLayoutData(BorderLayout.Region.SOUTH));
+ this.add(layout);
+
isInitialized = true;
}
}
Modified: projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/OpenTasksView.java
===================================================================
--- projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/OpenTasksView.java 2009-05-12 10:12:27 UTC (rev 4791)
+++ projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/OpenTasksView.java 2009-05-12 10:45:58 UTC (rev 4792)
@@ -24,20 +24,21 @@
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.ClickListener;
import com.google.gwt.user.client.ui.Widget;
+import com.google.gwt.user.client.ui.ChangeListener;
import com.mvc4g.client.Event;
import org.gwt.mosaic.ui.client.ListBox;
import org.gwt.mosaic.ui.client.MessageBox;
import org.gwt.mosaic.ui.client.ToolBar;
import org.gwt.mosaic.ui.client.ToolButton;
-import org.gwt.mosaic.ui.client.layout.BoxLayout;
-import org.gwt.mosaic.ui.client.layout.BoxLayoutData;
-import org.gwt.mosaic.ui.client.layout.LayoutPanel;
+import org.gwt.mosaic.ui.client.layout.*;
import org.gwt.mosaic.ui.client.list.DefaultListModel;
import org.jboss.bpm.console.client.icons.ConsoleIconBundle;
import org.jboss.bpm.console.client.model.TaskRef;
import org.jboss.bpm.console.client.task.events.TaskIdentityEvent;
+import org.jboss.bpm.console.client.task.events.DetailViewEvent;
import java.util.List;
+import java.util.Date;
/**
* @author Heiko.Braun <heiko.braun(a)jboss.com>
@@ -47,12 +48,17 @@
public final static String ID = OpenTasksView.class.getName();
- public OpenTasksView()
+ private TaskDetailView detailsView;
+
+ public OpenTasksView(TaskDetailView detailView)
{
super();
+
ConsoleIconBundle icons = GWT.create(ConsoleIconBundle.class);
setTitle("Open Tasks");
setIcon(icons.taskIcon());
+
+ this.detailsView = detailView;
}
public void initialize()
@@ -66,7 +72,7 @@
listBox =
new ListBox<TaskRef>(
new String[] {
- "Task ID", "Name", "Status"}
+ "Priority", "Name", "Status", "Due Date"}
);
@@ -75,7 +81,7 @@
TaskRef item) {
switch (column) {
case 0:
- listBox.setText(row, column, String.valueOf(item.getId()));
+ listBox.setText(row, column, String.valueOf(item.getPriority()));
break;
case 1:
listBox.setText(row, column, item.getName());
@@ -83,11 +89,32 @@
case 2:
listBox.setText(row, column, String.valueOf(item.getCurrentState()));
break;
+ case 3:
+ String dueDate = item.getDueDate() != null ? String.valueOf(item.getDueDate()) : "";
+ listBox.setText(row, column, dueDate);
+ break;
default:
throw new RuntimeException("Unexpected column size");
}
}
});
+
+
+ listBox.addChangeListener(
+ new ChangeListener() {
+
+ public void onChange(Widget widget)
+ {
+ TaskRef task = getSelection(); // first call always null?
+ if(task!=null)
+ {
+ controller.handleEvent(
+ new Event(UpdateDetailsAction.ID, new DetailViewEvent("OpenDetailView", task))
+ );
+ }
+ }
+ }
+ );
// toolbar
final LayoutPanel toolBox = new LayoutPanel();
@@ -138,8 +165,12 @@
this.taskList.add(toolBox, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
this.taskList.add(listBox, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));
- this.add(taskList);
+ // main layout
+ LayoutPanel layout = new LayoutPanel(new BorderLayout());
+ layout.add(taskList, new BorderLayoutData(BorderLayout.Region.CENTER));
+ layout.add(detailsView, new BorderLayoutData(BorderLayout.Region.SOUTH));
+ this.add(layout);
isInitialized = true;
}
}
Added: projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/TaskDetailView.java
===================================================================
--- projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/TaskDetailView.java (rev 0)
+++ projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/TaskDetailView.java 2009-05-12 10:45:58 UTC (rev 4792)
@@ -0,0 +1,85 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.bpm.console.client.task;
+
+import com.mvc4g.client.Controller;
+import com.mvc4g.client.ViewInterface;
+import org.gwt.mosaic.ui.client.CaptionLayoutPanel;
+import org.gwt.mosaic.ui.client.layout.LayoutPanel;
+import org.jboss.bpm.console.client.common.PropertyGrid;
+import org.jboss.bpm.console.client.model.TaskRef;
+
+/**
+ * @author Heiko.Braun <heiko.braun(a)jboss.com>
+ */
+public class TaskDetailView extends LayoutPanel implements ViewInterface
+{
+ public final static String ID = TaskDetailView.class.getName();
+
+ private Controller controller;
+
+ private TaskRef currentTask = null;
+
+ private PropertyGrid grid;
+
+ private boolean openView;
+
+ public TaskDetailView(boolean openView)
+ {
+ this.openView = openView;
+
+ // render
+ CaptionLayoutPanel panel = new CaptionLayoutPanel("Task details");
+ panel.setStyleName("bpm-detail-panel");
+ grid = new PropertyGrid(
+ new String[] {"ID:", "Name:", "Description:"}
+ );
+
+ panel.add(grid);
+
+ this.add(panel);
+ }
+
+ public void setController(Controller controller)
+ {
+ this.controller = controller;
+ }
+
+ public void update(TaskRef task)
+ {
+ String description = task.getDescription()!=null? task.getDescription():"";
+
+ String[] values = new String[] {
+ String.valueOf(task.getId()),
+ task.getName(),
+ description
+ };
+
+ grid.update(values);
+ }
+
+ public void clear()
+ {
+ currentTask = null;
+ grid.clear();
+ }
+}
Modified: projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/TaskEditor.java
===================================================================
--- projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/TaskEditor.java 2009-05-12 10:12:27 UTC (rev 4791)
+++ projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/TaskEditor.java 2009-05-12 10:45:58 UTC (rev 4792)
@@ -80,14 +80,20 @@
this.add(tabPanel, new BorderLayoutData(BorderLayout.Region.CENTER));
+ TaskDetailView openDetailView = new TaskDetailView(true);
+ TaskDetailView assingnedDetailView = new TaskDetailView(false);
+ controller.addView("OpenDetailView", openDetailView);
+ controller.addView("AssignedDetailView", assingnedDetailView);
+
// create and register views
- registerView(OpenTasksView.ID, new OpenTasksView());
- registerView(AssignedTasksView.ID, new AssignedTasksView(appContext));
+ registerView(OpenTasksView.ID, new OpenTasksView(openDetailView));
+ registerView(AssignedTasksView.ID, new AssignedTasksView(appContext, assingnedDetailView));
// create and register actions
registerAction(LoadTasksAction.ID, new LoadTasksAction(appContext));
registerAction(ClaimTaskAction.ID, new ClaimTaskAction(appContext));
registerAction(ReleaseTaskAction.ID, new ReleaseTaskAction(appContext));
+ registerAction(UpdateDetailsAction.ID, new UpdateDetailsAction());
// display tab, needs to visible for correct rendering
tabPanel.selectTab(0);
Added: projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/UpdateDetailsAction.java
===================================================================
--- projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/UpdateDetailsAction.java (rev 0)
+++ projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/UpdateDetailsAction.java 2009-05-12 10:45:58 UTC (rev 4792)
@@ -0,0 +1,48 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.bpm.console.client.task;
+
+import com.mvc4g.client.ActionInterface;
+import com.mvc4g.client.Controller;
+import org.jboss.bpm.console.client.model.TaskRef;
+import org.jboss.bpm.console.client.task.events.DetailViewEvent;
+
+/**
+ * @author Heiko.Braun <heiko.braun(a)jboss.com>
+ */
+public class UpdateDetailsAction implements ActionInterface
+{
+
+ public final static String ID = UpdateDetailsAction.class.getName();
+
+ public void execute(Controller controller, Object object)
+ {
+ DetailViewEvent event = (DetailViewEvent)object;
+ TaskRef task = event.getTask()!=null? event.getTask() : null;
+ TaskDetailView view = (TaskDetailView)controller.getView(event.getViewRef());
+
+ if(task!=null)
+ view.update(task);
+ else
+ view.clear();
+ }
+}
Added: projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/events/DetailViewEvent.java
===================================================================
--- projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/events/DetailViewEvent.java (rev 0)
+++ projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/events/DetailViewEvent.java 2009-05-12 10:45:58 UTC (rev 4792)
@@ -0,0 +1,49 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.bpm.console.client.task.events;
+
+import org.jboss.bpm.console.client.model.TaskRef;
+
+/**
+ * @author Heiko.Braun <heiko.braun(a)jboss.com>
+ */
+public final class DetailViewEvent
+{
+ String viewRef = null;
+ TaskRef task;
+
+ public DetailViewEvent(String viewRef, TaskRef task)
+ {
+ this.viewRef = viewRef;
+ this.task = task;
+ }
+
+ public String getViewRef()
+ {
+ return viewRef;
+ }
+
+ public TaskRef getTask()
+ {
+ return task;
+ }
+}
Modified: projects/gwt-console/trunk/gui/war/src/main/resources/org/jboss/bpm/console/public/console.css
===================================================================
--- projects/gwt-console/trunk/gui/war/src/main/resources/org/jboss/bpm/console/public/console.css 2009-05-12 10:12:27 UTC (rev 4791)
+++ projects/gwt-console/trunk/gui/war/src/main/resources/org/jboss/bpm/console/public/console.css 2009-05-12 10:45:58 UTC (rev 4792)
@@ -227,4 +227,25 @@
padding:5px;
}
+/* start - custom widgets */
+.bpm-detail-panel {
+ border:1px solid #E8E8E8;
+}
+.bpm-prop-grid {
+
+}
+
+.bpm-prop-grid-even {
+ background: #F8F8F8;
+}
+
+.bpm-prop-grid-odd {
+
+}
+
+.bpm-prop-grid-label {
+
+}
+
+/* end - custom widgets */
16 years, 11 months
JBoss JBPM SVN: r4791 - jbpm4/trunk/modules/distro/src/main/files/examples.
by do-not-reply@jboss.org
Author: tom.baeyens(a)jboss.com
Date: 2009-05-12 06:12:27 -0400 (Tue, 12 May 2009)
New Revision: 4791
Modified:
jbpm4/trunk/modules/distro/src/main/files/examples/build.xml
Log:
excluded failing examples from example.bar
Modified: jbpm4/trunk/modules/distro/src/main/files/examples/build.xml
===================================================================
--- jbpm4/trunk/modules/distro/src/main/files/examples/build.xml 2009-05-12 10:12:04 UTC (rev 4790)
+++ jbpm4/trunk/modules/distro/src/main/files/examples/build.xml 2009-05-12 10:12:27 UTC (rev 4791)
@@ -53,6 +53,22 @@
<jar destfile="${jbpm.home}/examples/target/examples.bar">
<fileset dir="${jbpm.home}/examples/src">
<include name="**/*.jpdl.xml" />
+ <exclude name="org/jbpm/examples/task/swimlane/process.jpdl.xml" />
+ <exclude name="org/jbpm/examples/task/candidates/process.jpdl.xml" />
+ <exclude name="org/jbpm/examples/concurrency/graphbased/process.jpdl.xml" />
+ <exclude name="org/jbpm/examples/timer/repeat/process.jpdl.xml" />
+ <exclude name="org/jbpm/examples/esb/process.jpdl.xml" />
+ <exclude name="org/jbpm/examples/script/text/process.jpdl.xml" />
+ <exclude name="org/jbpm/examples/decision/handler/process.jpdl.xml" />
+ <exclude name="org/jbpm/examples/mail/template/process.jpdl.xml" />
+ <exclude name="org/jbpm/examples/script/expression/process.jpdl.xml" />
+ <exclude name="org/jbpm/examples/task/assignee/process.jpdl.xml" />
+ <exclude name="org/jbpm/examples/mail/inline/process.jpdl.xml" />
+ <exclude name="org/jbpm/examples/mail/template/process.jpdl.xml" />
+ <exclude name="org/jbpm/examples/eventlistener/process.jpdl.xml" />
+ <exclude name="org/jbpm/examples/timer/event/process.jpdl.xml" />
+ <exclude name="org/jbpm/examples/task/assignmenthandler/process.jpdl.xml" />
+ <exclude name="org/jbpm/examples/java/JavaInstantiateTest.java" />
</fileset>
</jar>
<taskdef name="jbpm-deploy"
16 years, 11 months
JBoss JBPM SVN: r4790 - jbpm4/trunk/modules/distro.
by do-not-reply@jboss.org
Author: tom.baeyens(a)jboss.com
Date: 2009-05-12 06:12:04 -0400 (Tue, 12 May 2009)
New Revision: 4790
Modified:
jbpm4/trunk/modules/distro/pom.xml
Log:
moved version of integration components to jbpm parent pom
Modified: jbpm4/trunk/modules/distro/pom.xml
===================================================================
--- jbpm4/trunk/modules/distro/pom.xml 2009-05-12 09:53:06 UTC (rev 4789)
+++ jbpm4/trunk/modules/distro/pom.xml 2009-05-12 10:12:04 UTC (rev 4790)
@@ -45,17 +45,14 @@
<dependency>
<groupId>org.jbpm.jbpm4</groupId>
<artifactId>jbpm-console-integration</artifactId>
- <version>${version}</version>
</dependency>
<dependency>
<groupId>org.jbpm.jbpm4</groupId>
<artifactId>jbpm-console-form-plugin</artifactId>
- <version>${version}</version>
</dependency>
<dependency>
<groupId>org.jbpm.jbpm4</groupId>
<artifactId>jbpm-jboss4</artifactId>
- <version>${version}</version>
</dependency>
<dependency>
<groupId>org.jbpm.jbpm4</groupId>
16 years, 11 months
JBoss JBPM SVN: r4789 - jbpm4/branches.
by do-not-reply@jboss.org
Author: tom.baeyens(a)jboss.com
Date: 2009-05-12 05:53:06 -0400 (Tue, 12 May 2009)
New Revision: 4789
Removed:
jbpm4/branches/jbpm-4.0.0.Beta2/
Log:
tagging jbpm-4.0.0.Beta2
16 years, 11 months
JBoss JBPM SVN: r4788 - jbpm4/tags.
by do-not-reply@jboss.org
Author: tom.baeyens(a)jboss.com
Date: 2009-05-12 05:52:06 -0400 (Tue, 12 May 2009)
New Revision: 4788
Added:
jbpm4/tags/jbpm-4.0.0.Beta2/
Log:
tagging jbpm-4.0.0.Beta2
Copied: jbpm4/tags/jbpm-4.0.0.Beta2 (from rev 4787, jbpm4/branches/jbpm-4.0.0.Beta2)
16 years, 11 months
JBoss JBPM SVN: r4787 - jbpm4/branches/jbpm-4.0.0.Beta2/modules/distro/src/main/files/examples.
by do-not-reply@jboss.org
Author: tom.baeyens(a)jboss.com
Date: 2009-05-12 03:49:49 -0400 (Tue, 12 May 2009)
New Revision: 4787
Modified:
jbpm4/branches/jbpm-4.0.0.Beta2/modules/distro/src/main/files/examples/build.xml
Log:
excluded failing processes from example.bar
Modified: jbpm4/branches/jbpm-4.0.0.Beta2/modules/distro/src/main/files/examples/build.xml
===================================================================
--- jbpm4/branches/jbpm-4.0.0.Beta2/modules/distro/src/main/files/examples/build.xml 2009-05-12 07:47:09 UTC (rev 4786)
+++ jbpm4/branches/jbpm-4.0.0.Beta2/modules/distro/src/main/files/examples/build.xml 2009-05-12 07:49:49 UTC (rev 4787)
@@ -53,6 +53,22 @@
<jar destfile="${jbpm.home}/examples/target/examples.bar">
<fileset dir="${jbpm.home}/examples/src">
<include name="**/*.jpdl.xml" />
+ <exclude name="org/jbpm/examples/task/swimlane/process.jpdl.xml" />
+ <exclude name="org/jbpm/examples/task/candidates/process.jpdl.xml" />
+ <exclude name="org/jbpm/examples/concurrency/graphbased/process.jpdl.xml" />
+ <exclude name="org/jbpm/examples/timer/repeat/process.jpdl.xml" />
+ <exclude name="org/jbpm/examples/esb/process.jpdl.xml" />
+ <exclude name="org/jbpm/examples/script/text/process.jpdl.xml" />
+ <exclude name="org/jbpm/examples/decision/handler/process.jpdl.xml" />
+ <exclude name="org/jbpm/examples/mail/template/process.jpdl.xml" />
+ <exclude name="org/jbpm/examples/script/expression/process.jpdl.xml" />
+ <exclude name="org/jbpm/examples/task/assignee/process.jpdl.xml" />
+ <exclude name="org/jbpm/examples/mail/inline/process.jpdl.xml" />
+ <exclude name="org/jbpm/examples/mail/template/process.jpdl.xml" />
+ <exclude name="org/jbpm/examples/eventlistener/process.jpdl.xml" />
+ <exclude name="org/jbpm/examples/timer/event/process.jpdl.xml" />
+ <exclude name="org/jbpm/examples/task/assignmenthandler/process.jpdl.xml" />
+ <exclude name="org/jbpm/examples/java/JavaInstantiateTest.java" />
</fileset>
</jar>
<taskdef name="jbpm-deploy"
16 years, 11 months
JBoss JBPM SVN: r4786 - in jbpm4/branches/jbpm-4.0.0.Beta2/modules/distro/src/main/files/jboss/config.jboss5: deployers/jbpm.deployer/META-INF and 1 other directory.
by do-not-reply@jboss.org
Author: heiko.braun(a)jboss.com
Date: 2009-05-12 03:47:09 -0400 (Tue, 12 May 2009)
New Revision: 4786
Modified:
jbpm4/branches/jbpm-4.0.0.Beta2/modules/distro/src/main/files/jboss/config.jboss5/conf/bootstrap/deployers.xml
jbpm4/branches/jbpm-4.0.0.Beta2/modules/distro/src/main/files/jboss/config.jboss5/deployers/jbpm.deployer/META-INF/jbpm-deployers-jboss-beans.xml
Log:
hbraun$ svn merge -r4782:4785 https://svn.jboss.org/repos/jbpm/jbpm4/trunk
Modified: jbpm4/branches/jbpm-4.0.0.Beta2/modules/distro/src/main/files/jboss/config.jboss5/conf/bootstrap/deployers.xml
===================================================================
--- jbpm4/branches/jbpm-4.0.0.Beta2/modules/distro/src/main/files/jboss/config.jboss5/conf/bootstrap/deployers.xml 2009-05-12 07:45:38 UTC (rev 4785)
+++ jbpm4/branches/jbpm-4.0.0.Beta2/modules/distro/src/main/files/jboss/config.jboss5/conf/bootstrap/deployers.xml 2009-05-12 07:47:09 UTC (rev 4786)
@@ -102,7 +102,7 @@
<value>.spring</value>
<value>.rails</value>
<value>.esb</value>
- <value>.jpdl</value>
+ <value>.bar</value>
</set>
</parameter>
</constructor>
Modified: jbpm4/branches/jbpm-4.0.0.Beta2/modules/distro/src/main/files/jboss/config.jboss5/deployers/jbpm.deployer/META-INF/jbpm-deployers-jboss-beans.xml
===================================================================
--- jbpm4/branches/jbpm-4.0.0.Beta2/modules/distro/src/main/files/jboss/config.jboss5/deployers/jbpm.deployer/META-INF/jbpm-deployers-jboss-beans.xml 2009-05-12 07:45:38 UTC (rev 4785)
+++ jbpm4/branches/jbpm-4.0.0.Beta2/modules/distro/src/main/files/jboss/config.jboss5/deployers/jbpm.deployer/META-INF/jbpm-deployers-jboss-beans.xml 2009-05-12 07:47:09 UTC (rev 4786)
@@ -28,7 +28,7 @@
<property name="suffix">.jpdl.xml</property>
<!-- Move to .par when https://jira.jboss.org/jira/browse/JBAS-6274 is done -->
- <property name="jarExtension">jpdl</property>
+ <property name="jarExtension">bar</property>
<property name="allowMultipleFiles">true</property>
16 years, 11 months