Пример #1
0
  @Override
  public SocialActivitiesEvent toSocial(Object object) {
    ProjectDeployedEvent event = (ProjectDeployedEvent) object;

    return new SocialActivitiesEvent(
            socialUserRepository.systemUser(),
            AssetManagementEventTypes.PROJECT_DEPLOYED.name(),
            new Date(event.getTimestamp()))
        .withLink(
            event.getRepositoryAlias() != null ? event.getRepositoryAlias() : "<unknown>",
            event.getRootURI() != null ? event.getRootURI() : "<unknown>")
        .withAdicionalInfo(getAdditionalInfo(event));
  }
Пример #2
0
  @Override
  public SocialActivitiesEvent toSocial(Object object) {
    ProcessStartEvent event = (ProcessStartEvent) object;

    return new SocialActivitiesEvent(
            socialUserRepository.systemUser(),
            AssetManagementEventTypes.PROCESS_START.name(),
            new Date(event.getTimestamp()))
        .withLink(
            event.getRepositoryAlias() != null ? event.getRepositoryAlias() : "<unknown>",
            event.getRootURI() != null ? event.getRootURI() : "<unknown>")
        .withAdicionalInfo(
            "Process: " + event.getProcessName() + " started on: " + event.getRepositoryAlias());
  }