Annotation Type BusinessCaseData


  • @Retention(RUNTIME)
    @Target(TYPE)
    public @interface BusinessCaseData

    Link to Business Case

    To associate Business Data values in the repository with the current business case you have to annotate the data class with this annotation.

    The advantage is that you do not have to care about identifiers of your Business Data.

    Class definition example:

     @BusinessCaseData
     public class CreditDossier { ... }

    Usage example:

     CreditDossier dossier = ivy.repo.get(CreditDossier.class) as CreditDossier;
     ivy.repo.save(dossier);
     IBusinessCase bc = ivy.repo.getInfo(dossier).getContext() as IBusinessCase;
     

    Case Map integration

    Within Case Map scripts the data of this Business Case can be accessed by its simple name.

    Class definition example:

     @BusinessCaseData
     public class CreditDossier { ... }

    PreCondition example:

     creditDossier.needsApproval
     

    Since:
    6.6
    See Also:
    BusinessDataRepository, BusinessDataRepository.get(Class), BusinessDataRepository.exists(Class), BusinessDataInfo.getContext()
    API:
    This is a public API.