Skip to content

Instantly share code, notes, and snippets.

@jeqo
Created May 18, 2014 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeqo/4c991586ee14d31ed832 to your computer and use it in GitHub Desktop.
Save jeqo/4c991586ee14d31ed832 to your computer and use it in GitHub Desktop.
Method to Create an User Extended Property on Oracle BPM 11g
public void createUserExtendedProperty(String propertyName,
PropertyType propertyType) {
try {
beginConnection();
IBPMServiceClient bpmServiceClient =
clientFactory.getBPMServiceClient();
IBPMOrganizationService bpmOrganizationService =
bpmServiceClient.getBPMOrganizationService();
ParticipantProperty participantProperty =
new ParticipantProperty();
participantProperty.setName(propertyName);
participantProperty.setPropertyType(propertyType.name());
bpmOrganizationService.createParticipantProperty(bpmContext,
participantProperty);
} catch (Exception e) {
e.printStackTrace();
} finally {
closeConnection();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment