Skip to content

Instantly share code, notes, and snippets.

@CedricL46
Last active March 12, 2018 11:58
Show Gist options
  • Save CedricL46/15c6234d014d547dcb5c53cc7abe360a to your computer and use it in GitHub Desktop.
Save CedricL46/15c6234d014d547dcb5c53cc7abe360a to your computer and use it in GitHub Desktop.
public String defaultNextStatus() {
String value = (String) getAttributeInternal(AttributesEnum.NextStatus.index());
if (value == null) {
XxcrWorkflowUvVORowImpl nextStatut = (XxcrWorkflowUvVORowImpl) getWfkVA().first();
//Wkfva is the VO of the LOV
if (nextStatut != null) {
return nextStatut.getTxtValeur();
}
}
return value;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment