cancel
Showing results for 
Search instead for 
Did you mean: 

how to read activiti-app.properties file data into Form Stencil of Alfresco Process Service

sraone
Champ in-the-making
Champ in-the-making

I'am trying to read the data from the properties file present in my local system into Form Stencil of Alfresco Process Service.Is it possible to read the data .Please reply back.

Thanks in Advance.

2 REPLIES 2

bassam_al-saror
Star Collaborator
Star Collaborator

Can you describe more what do you want to do maybe giving an example?

I had same scenario but I have used java to read custom property file.

You need to place property at classpath.

@Configuration
@PropertySource("classpath:/META-INF/foo/foo.properties")
@PropertySource(value = "classpath:foo.properties", ignoreResourceNotFound = true)
@PropertySource(value = "file:foo.properties", ignoreResourceNotFound = true)
@Service("MyService")
public class MyService {

	@Value("${propertyname}")
	private String name;
}