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

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Member II

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

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
Alfresco Employee

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

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

Highlighted
Senior Member II

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

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;
}
Thanks & Regard,
Sanjay