Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320475 - Call a template for a null object
Summary: Call a template for a null object
Status: CLOSED WONTFIX
Alias: None
Product: M2T
Classification: Modeling
Component: Xpand (show other bugs)
Version: 1.0.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Karsten Thoms CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 261605
Blocks:
  Show dependency tree
 
Reported: 2010-07-21 05:14 EDT by Gerd CLA
Modified: 2017-10-31 11:26 EDT (History)
2 users (show)

See Also:


Attachments
Path to enable execution of templates called with a null object (898 bytes, patch)
2010-07-21 05:15 EDT, Gerd CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gerd CLA 2010-07-21 05:14:23 EDT
Build Identifier: 20100617-1415

When calling a template with a null object, the template is not executed.

Reproducible: Always

Steps to Reproduce:
1. Create template template.xpt
«DEFINE generate(String content) FOR Void»
	«FILE "Test.txt" -»
		Content: «content»
	«ENDFILE»
«ENDDEFINE»
2. Call template from workflow
template::generate('Hello World') FOR null
3. Template is not executed
Comment 1 Gerd CLA 2010-07-21 05:15:21 EDT
Created attachment 174823 [details]
Path to enable execution of templates called with a null object
Comment 2 Karsten Thoms CLA 2013-10-18 10:29:41 EDT
Actually this is intended behavior, see Bug#261605
Comment 3 Eclipse Webmaster CLA 2017-10-31 11:26:36 EDT
Requested via bug 522520.

-M.