Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 320475

Summary: Call a template for a null object
Product: [Modeling] M2T Reporter: Gerd <kainz>
Component: XpandAssignee: Karsten Thoms <karsten.thoms>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: btickets, kainz
Version: 1.0.1   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 261605    
Bug Blocks:    
Attachments:
Description Flags
Path to enable execution of templates called with a null object none

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.