Example usage for com.liferay.portal.kernel.workflow WorkflowConstants CONTEXT_URL

List of usage examples for com.liferay.portal.kernel.workflow WorkflowConstants CONTEXT_URL

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.workflow WorkflowConstants CONTEXT_URL.

Prototype

String CONTEXT_URL

To view the source code for com.liferay.portal.kernel.workflow WorkflowConstants CONTEXT_URL.

Click Source Link

Usage

From source file:com.liferay.wiki.util.test.WikiTestUtil.java

License:Open Source License

protected static WikiPage updateStatus(WikiPage page, ServiceContext serviceContext) throws Exception {

    Map<String, Serializable> workflowContext = new HashMap<>();

    workflowContext.put(WorkflowConstants.CONTEXT_URL, "http://localhost");

    page = WikiPageLocalServiceUtil.updateStatus(page.getUserId(), page, WorkflowConstants.STATUS_APPROVED,
            serviceContext, workflowContext);

    return page;/*from  w  w w . j  a  va 2s  .c o  m*/
}