Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347132 - [mwe2] auto-inject overrides explicit properties
Summary: [mwe2] auto-inject overrides explicit properties
Status: RESOLVED FIXED
Alias: None
Product: EMFT
Classification: Modeling
Component: MWE (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: SR2   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-25 06:55 EDT by Knut Wannheden CLA
Modified: 2011-08-25 10:55 EDT (History)
1 user (show)

See Also:
sebastian.zarnekow: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Knut Wannheden CLA 2011-05-25 06:55:56 EDT
I have an MWE2 workflow where I've defined a top-level variable. The variable's name matches the name of an auto-injected workflow component's property. But as the property is being explicitly set I would expect this explicit setting to take precedence over the auto-injected value.

E.g.

module foo.Foo

var bar = "bar"

Workflow {

  component = foo.FooComponent auto-inject {
    bar = ""
  }

}

When executed the property "bar" of FooComponent will be set to "bar".
Comment 1 Sebastian Zarnekow CLA 2011-06-01 05:46:33 EDT
I can confirm that auto-inject does not work correctly.
Comment 2 Sebastian Zarnekow CLA 2011-08-25 10:55:17 EDT
Pushed to master.