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 148446

Summary: Minus operator does not get configured correctly
Product: soa Reporter: prashantbhagat <prashantbhagat>
Component: IEP editorAssignee: Gabriel Badescu <gbadescu>
Status: STARTED ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Project

Description prashantbhagat 2008-09-26 03:26:01 UTC
Steps to reproduce:
1. Create a new IEP project
2. Drag an StreamInput and add an attribute to it.
3. Drag a TimeBasedOperator and a TupleBasedOperator. Connect these to the StreamInput
4. Drag a MinusOperator. Connect the TimeBasedOperator and TupleBasedOperator to it
5. Drag a StreamOutput.
6. Build the IEP project, you will see validation errors as copied below:
"ERROR: property "subtractFrom" is required but undefined."

Attached is the project that I created as per the steps outlined above.
Comment 1 prashantbhagat 2008-09-26 03:26:31 UTC
Created attachment 70637 [details]
Project
Comment 2 Ritesh Adval 2008-10-01 06:08:34 UTC
This issue has to do with not configuring minus operator properly.
In minus operator currently user should to select subtract from property and hit ok in the dialog.
This is confusing because when you open the minus dialog and it shows the first operator in subtract from 
field but user has to click ok to be able to save this value in operator property.

This should be fixed such that either when we link we should be able to set this property (subtractFrom)
to the first input operator connected to it, or in the operator dialog by default it should not
show first operator but a text like "select an operator"