Custom system notification | Community
Skip to main content
New Participant
October 16, 2015
Solved

Custom system notification

  • October 16, 2015
  • 3 replies
  • 1020 views

Hi,

We need to send custom system notification(like below) for workflow steps. Can somebody guide me please, how to generate these notification programmatically.

 

 

Thanks & regards

Sumit

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

sumitc22Author
New Participant
October 16, 2015

Sumit Chakraborty wrote...

Hi,

We need to send custom system notification(like below) for workflow steps. Can somebody guide me please, how to generate these notification programmatically.

 

 

 

Thanks & regards

Sumit

 

 

Attached image

sumitc22Author
New Participant
October 16, 2015

Was trying below:

private InboxManager inboxManager;

--------------------------

--------------------------

public void sendMessage(Authorizable user, String reason) throws IOException {

        

        final Message msg = this.inboxManager.createMessage(user);

        msg.setReason(reason);
        

        msg.save();

    }

Maven config using :

<dependency>
            <groupId>com.day.cq.wcm</groupId>
            <artifactId>cq-wcm-notification</artifactId>
            <version>5.6.8</version>
            
        </dependency>

 

 

Getting the error below:

org.osgi.framework.BundleException: Unresolved constraint in bundle group-id.myproject-bundle [392]: Unable to resolve 392.0: missing requirement [392.0] osgi.wiring.package; (osgi.wiring.package=com.day.cq.wcm.notification.inbox)
    at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3980)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:2043)

Anybody has done similar thing ? Please help.