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?

sp2
Elite Collaborator
Elite Collaborator

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;
}
Getting started

Explore our Alfresco products with the links below. Use labels to filter content by product module.