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

The following examples show how to use org.alfresco.service.namespace.NamespaceService#BPM_MODEL_PREFIX . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
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
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
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());
}