@Override
public JournalArticle updateStatus(
int status, Map<String, Serializable> workflowContext)
throws PortalException {
long userId = GetterUtil.getLong(
(String)workflowContext.get(WorkflowConstants.CONTEXT_USER_ID));
long classPK = GetterUtil.getLong(
(String)workflowContext.get(
WorkflowConstants.CONTEXT_ENTRY_CLASS_PK));
JournalArticle article = _journalArticleLocalService.getArticle(
classPK);
ServiceContext serviceContext = (ServiceContext)workflowContext.get(
"serviceContext");
String articleURL = _portal.getControlPanelFullURL(
serviceContext.getScopeGroupId(),
PortletProviderUtil.getPortletId(
JournalArticle.class.getName(), PortletProvider.Action.EDIT),
null);
return _journalArticleLocalService.updateStatus(
userId, article, status, articleURL, serviceContext,
workflowContext);
}