Skip to content

Commit

Permalink
use existing workflow plugin instance
Browse files Browse the repository at this point in the history
  • Loading branch information
rsehr committed Nov 4, 2024
1 parent 3a8ce96 commit 21e56ae
Showing 1 changed file with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,6 @@ public class EntityDashboardPlugin implements IDashboardPlugin {
@Getter
private PluginGuiType pluginGuiType = PluginGuiType.FULL;

;

/**
* Constructor
*/
public EntityDashboardPlugin() {

}

public String loadEntityEdition(RowEntry entry) {

if (!LockingBean.lockObject(entry.getProcessId(), Helper.getCurrentUser().getNachVorname())) {
Expand All @@ -58,8 +49,12 @@ public String loadEntityEdition(RowEntry entry) {

NavigationForm form = Helper.getBeanByClass(NavigationForm.class);

form.setPlugin("intranda_workflow_entity_editor");
IWorkflowPlugin plugin = form.getWorkflowPlugin();
if (plugin == null) {
form.setPlugin("intranda_workflow_entity_editor");
plugin = form.getWorkflowPlugin();

}

try {
Method selection = plugin.getClass().getMethod("setSelectedBreadcrumb", BreadcrumbItem.class);
Expand Down

0 comments on commit 21e56ae

Please sign in to comment.