Menu

#702 bpmn, copy/paste, Paste operation failed, при вставке элементов которые были удалены в процессе источнике

v4.1.2
closed-fixed
mihaj
None
1
2014-07-23
2014-07-08
vromav
No

В случае если скопированные элементы удалить из процесса, то при попытке вставки их в другой процесс, получаю ошибку, так и задумано?

java.lang.RuntimeException: Node not found in process definition: ID7, all nodes: [ID3, ID10]
at ru.runa.gpd.lang.model.ProcessDefinition.getGraphElementByIdNotNull(ProcessDefinition.java:348)
at ru.runa.gpd.editor.CopyGraphCommand.execute(CopyGraphCommand.java:154)
at org.eclipse.graphiti.ui.internal.editor.EmfOnGefCommand.execute(EmfOnGefCommand.java:

1 Attachments

Discussion

  • vromav

    vromav - 2014-07-08

    При этом после ошибки, вставка все же выполняется, баг

     
  • mihaj

    mihaj - 2014-07-14
    • status: open --> pending-fixed
     
  • mihaj

    mihaj - 2014-07-14

    svn: 5780

     
  • vromav

    vromav - 2014-07-14

    Не исправлено.

    Кидаю в процесс узел действие, копирую его, удаляю из процесса узел, сохраняю процесс, открываю другой процесс, нажимаю Вставить, возникает ошибка

    См. видео

     

    Last edit: vromav 2014-07-14
  • vromav

    vromav - 2014-07-14
    • status: pending-fixed --> open
     
  • mihaj

    mihaj - 2014-07-16
    • status: open --> pending-fixed
     
  • mihaj

    mihaj - 2014-07-16

    svn: 5792

     
  • vromav

    vromav - 2014-07-19
    • status: pending-fixed --> open
     
  • vromav

    vromav - 2014-07-19

    не исправлено

    java.lang.NullPointerException
    at ru.runa.gpd.editor.CopyGraphCommand.execute(CopyGraphCommand.java:160)
    at org.eclipse.graphiti.ui.internal.editor.EmfOnGefCommand.execute(EmfOnGefCommand.java:54)
    at org.eclipse.graphiti.internal.command.GFPreparableCommand2.doExecute(GFPreparableCommand2.java:37)
    at org.eclipse.emf.transaction.RecordingCommand.execute(RecordingCommand.java:135)
    at org.eclipse.emf.workspace.EMFCommandOperation.doExecute(EMFCommandOperation.java:119)
    at org.eclipse.emf.workspace.AbstractEMFOperation.execute(AbstractEMFOperation.java:150)
    at org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:513)
    at org.eclipse.emf.workspace.impl.WorkspaceCommandStackImpl.doExecute(WorkspaceCommandStackImpl.java:208)
    at org.eclipse.emf.transaction.impl.AbstractTransactionalCommandStack.execute(AbstractTransactionalCommandStack.java:165)
    at org.eclipse.graphiti.ui.internal.editor.GFWorkspaceCommandStackImpl.execute(GFWorkspaceCommandStackImpl.java:83)
    at org.eclipse.graphiti.ui.internal.editor.GFCommandStack.execute(GFCommandStack.java:124)
    at org.eclipse.gef.ui.actions.WorkbenchPartAction.execute(WorkbenchPartAction.java:83)
    at ru.runa.gpd.editor.PasteAction.run(PasteAction.java:30)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)

     

    Last edit: vromav 2014-07-19
  • mihaj

    mihaj - 2014-07-23
    • status: open --> pending-fixed
     
  • mihaj

    mihaj - 2014-07-23

    svn: 5802

     
  • vromav

    vromav - 2014-07-23
    • status: pending-fixed --> closed-fixed