Commit 2247b5bd by Chamath

WorkFlowTemplates service added.

parent bde271d9
package performa.search;
import oneit.objstore.*;
import oneit.objstore.rdbms.filters.*;
import performa.orm.*;
public class SearchWorkFlowTemplate extends BaseSearchWorkFlowTemplate
{
private static final long serialVersionUID = 0L;
// This constructor should not be called
public SearchWorkFlowTemplate ()
{
// Do not add any code to this, always put it in initialiseNewObject
}
@Override
public BaseBusinessClass[] doSearch()
{
BaseWorkFlowTemplate.SearchAll searchByAll = WorkFlowTemplate.SearchByAll();
if (isTrue(getOnlyGlobalTemplates()))
{
return searchByAll.andIsGlobalTemplate(new EqualsFilter<>(Boolean.TRUE)).search(getTransaction());
}
return searchByAll.andIsGlobalTemplate(new IsNotNullFilter<>()).search(getTransaction());
}
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<ROOT xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='http://www.oneit.com.au/schemas/5.2/BusinessObject.xsd'>
<BUSINESSCLASS name="SearchWorkFlowTemplate" package="performa.search" superclass="SearchExecutor" >
<IMPORT value="oneit.servlets.orm.*" />
<IMPORT value="performa.orm.*"/>
<IMPORT value="performa.orm.types.*"/>
<TABLE tablePrefix="object" polymorphic="FALSE" >
<ATTRIB name="OnlyGlobalTemplates" type="Boolean" />
</TABLE>
</BUSINESSCLASS>
</ROOT>
\ No newline at end of file
......@@ -76,6 +76,12 @@
<QueryType factory="String" name="All" value="performa.search.SearchMessageTemplate"/>
</NODE>
<NODE name="WorkFlowTemplates" factory="Participant" class="oneit.appservices.ws.services.ORMSearchJSONService" boClass="performa.orm.WorkFlowTemplate" privilege="*">
<Overview>This service returns all the Workflow Templates</Overview>
<QueryType factory="String" name="All" value="performa.search.SearchWorkFlowTemplate"/>
</NODE>
<NODE name="SaveMessageAsCopy" factory="Participant" class="performa.ws.SaveMessageAsCopy" privilege="*">
<INHERITS nodename="SaveWebService::.*" mandatory="false"/>
</NODE>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment