我创建了我的 hst spring-deleerated-bean 并且它被正确注入(inject)和调用。
我尝试提交表单,将表单数据获取到 dto 中并创建并保存我的 Todoitem。
我的“Todoitem”bean 扩展了 HippoDocument 并实现了 ContentNodeBinder。
我将 DTO 到 Node 的转换放在绑定(bind)方法中:
...
node.getProperty("myhippotodolist:title").setValue(dto.getTitle());
node.getProperty("myhippotodolist:content").setValue(dto.getContent());
...
我将此代码写入 doAction 方法:
persistableSession = getPersistableSession(request);
wpm = getWorkflowPersistenceManager(persistableSession);
...
...
final String absPathNode = wpm.createAndReturn(todoitemFolderPath, "myhippotodolist:todoitem", todoItemNodeName, true);
Todoitem todoitemBean = (Todoitem) wpm.getObject(absPathNode);
...
...
todoitemBean.bind(toDoItemDTO, todoitemBean.getNode());
wpm.update(todoitemBean);
好吧,现在我可以通过 Hippo Console 查看新节点,但标题和内容尚未确定。 我还收到了这个消息日志:
[INFO] [talledLocalContainer] 03.11.2014 14:58:13 WARN http-bio-8080-exec-1 [WorkflowPersistenceManagerImpl.update:432] Could not obtain workflow 'default' for '/content/documents/myhippotodolist/todoitems/todoitem-1415023023096/todoitem-1415023023096'. Make sure that user 'sitewriter' has enough workflow rights on the node.
我还在域工作流程和 hippodocuments 中为网站编写者配置了读写权限。
我不明白...请问我的错误是什么?
谢谢
最佳答案
您能否尝试将用户生成的内容域导入到您的域中,就像 gogreen 处理评论一样:
网站编写者似乎没有访问正确工作流程操作的权限。通过该域,您应该能够执行您所描述的工作流程操作。
祝你好运
关于java - BaseHstComponent 的新文档 : Could not obtain workflow 'default' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26740310/