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
Solved! Go to Solution.
Views
Replies
Total Likes
Views
Replies
Total Likes
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
Views
Replies
Total Likes
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
Views
Like
Replies
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies