This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 138932 - BPEL Process cannot be saved when an element is not selected
Summary: BPEL Process cannot be saved when an element is not selected
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Alexey Yarmolenko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-03 11:51 UTC by Kirill Sorokin
Modified: 2008-10-12 01:34 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screencast (633.25 KB, application/x-shockwave-flash)
2008-07-03 11:52 UTC, Kirill Sorokin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kirill Sorokin 2008-07-03 11:51:32 UTC
Steps to reproduce:

- create a synchronous sample
- change something on the diagram (e.g. drag the Assign so that it is below Reply)
- click somewhere on the empty space on the diagram so that the selection is lost
- try to save the file via keyboard shortcut (Save All works correctly)

The file will not be saved. Also note that the window title changes when you select an activity and when you lose
selection (see the attached screencast). I'm filing as a P2, as there might be something quite bad happening underneath.
Comment 1 Kirill Sorokin 2008-07-03 11:52:31 UTC
Created attachment 63884 [details]
Screencast
Comment 2 Sergey Lunegov 2008-07-03 12:35:01 UTC
Alexey, looks like problem in BPEL OM ?
Comment 3 Alexey Yarmolenko 2008-07-03 14:48:41 UTC
This is not an OM issue. Code, responsible for exposing current diagram selection via active node to the rest of
netbeans, setting active node to null when nothing is selected on diagram. Because of this, framework can't access
node's Lookup and figure out which DataObject it belongs to. DataObject is used by framework to determine saved/dirty
status for the data, which current node represents.

Setting active node to null was done by intent to avoid some other issues with Multiview. This fix was introduced not
far ago. The biggest problem now is to find information on this fix(because it was done in CVS time and history is lost
after switching to HG). I'm digging thru my email archives trying to figure this out. Otherwise we can introduce
regressions multiview selection code.
Comment 4 Alexey Yarmolenko 2008-07-25 16:04:38 UTC
Fixed. I switched to the version, which selects sets process itself as active node when selection is empty.
Comment 6 ggenipudi 2008-10-12 01:34:30 UTC
tested and verified using Build 200810080102 and followed the steps below and opened the bpel in synchronous sample and
moved the assign and did a save using ctrl c and the change was saved.
Reopened the bpel and the change was saved.