Java Code Examples for org.alfresco.service.namespace.NamespaceService.BPM_MODEL_PREFIX

The following are Jave code examples for showing how to use BPM_MODEL_PREFIX of the org.alfresco.service.namespace.NamespaceService class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: alfresco-repository   File: WorkflowFormProcessorTest.java   View Source Code Vote up 5 votes
public void testIgnoresUnknownFields() throws Exception
{
    String fakeFieldName = NamespaceService.BPM_MODEL_PREFIX + ":" + "Fake Field";
    String priorityField = PRIORITY_NAME.toPrefixString(namespaceService);
    List<String> fields = Arrays.asList(fakeFieldName, priorityField);
    Form form = processForm(fields);
    checkSingleProperty(form, priorityField, 2);
    checkPackageActionGroups(form.getFormData());
}
 
Example 2
Project: alfresco-repository   File: TaskFormProcessorTest.java   View Source Code Vote up 5 votes
public void testGenerateSetsItemAndUrl() throws Exception
{
    Form form = ((TaskFormProcessor) processor).generate(item, null, null, null);
    Item formItem = form.getItem();
    assertEquals(item.getId(), formItem.getId());
    assertEquals(item.getKind(), formItem.getKind());
    String expType = NamespaceService.BPM_MODEL_PREFIX + ":" + TASK_DEF_NAME;
    assertEquals(expType, formItem.getType());
    assertEquals("api/task-instances/" + TASK_ID, formItem.getUrl());
}
 
Example 3
Project: alfresco-repository   File: TaskFormProcessorTest.java   View Source Code Vote up 5 votes
public void testIgnoresUnknownFields() throws Exception
{
    String fakeFieldName = NamespaceService.BPM_MODEL_PREFIX + ":" + "Fake Field";
    String statusFieldName = STATUS_NAME.toPrefixString(namespaceService);
    List<String> fields = Arrays.asList(fakeFieldName, statusFieldName);
    Form form = processForm(fields);
    checkSingleProperty(form, statusFieldName, WorkflowTaskState.IN_PROGRESS);
    checkPackageActionGroups(form.getFormData());
}