Package org.imixs.workflow.office.forms
Class SuggestInputController
java.lang.Object
org.imixs.workflow.office.forms.SuggestInputController
- All Implemented Interfaces:
Serializable
The SuggestInputController can be used to suggest inputs from earlier
requests within the same workflowGroup.
- Version:
- 1.0
- Author:
- rsoika
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprotected org.imixs.workflow.faces.data.WorkflowController -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDisplayLine(String displayItemList, org.imixs.workflow.ItemCollection suggestItemCol) Helper method that creates an entry line output for the suggest resultlist.List<org.imixs.workflow.ItemCollection>voidonWorkflowEvent(org.imixs.workflow.faces.data.WorkflowEvent workflowEvent) If the current workitem changed reset the last search resultvoidreset()This method reset the search and input state.voidreset(jakarta.faces.event.AjaxBehaviorEvent event) This ajax event method reset the search and input state.voidThis method initializes a lucene search.voidupdate(org.imixs.workflow.ItemCollection workitem, org.imixs.workflow.ItemCollection suggest, String itemList) This method updates the current workitem with the values defined by teh itemList from the given suggest workitem.
-
Field Details
-
MAX_RESULT
public static final int MAX_RESULT- See Also:
-
workflowController
@Inject protected org.imixs.workflow.faces.data.WorkflowController workflowController
-
-
Constructor Details
-
SuggestInputController
public SuggestInputController()
-
-
Method Details
-
getSearchResult
-
reset
public void reset()This method reset the search and input state. -
reset
public void reset(jakarta.faces.event.AjaxBehaviorEvent event) This ajax event method reset the search and input state.- Parameters:
event-
-
update
public void update(org.imixs.workflow.ItemCollection workitem, org.imixs.workflow.ItemCollection suggest, String itemList) This method updates the current workitem with the values defined by teh itemList from the given suggest workitem.- Parameters:
suggest- - ItemColleciton with data to suggestitemList- - item names to be updated.
-
search
This method initializes a lucene search. The method is triggered by ajax events from the userInput.xhtml page. The minimum length of a given input search phrase have to be at least 3 characters- Parameters:
keyItemName- - itemName to identify the unique itemCollectioninput- - search phrasesearchItemList- - itemName list to serach for
-
onWorkflowEvent
public void onWorkflowEvent(@Observes org.imixs.workflow.faces.data.WorkflowEvent workflowEvent) If the current workitem changed reset the last search result- Parameters:
workflowEvent-
-
getDisplayLine
public String getDisplayLine(String displayItemList, org.imixs.workflow.ItemCollection suggestItemCol) Helper method that creates an entry line output for the suggest resultlist.- Parameters:
displayItemList-suggestItemCol-- Returns:
-