Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ghsby
o2oa
提交
d36d300e
o2oa
项目概览
ghsby
/
o2oa
落后 Fork 源项目 2880 个版本
Fork自
浙江兰德纵横网络技术股份有限公司 / o2oa
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
o2oa
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d36d300e
编写于
11月 04, 2020
作者:
O
o2null
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'fix/getform' into 'wrdp'
Fix/getform See merge request o2oa/o2oa!1984
上级
66646e45
d6dc33d9
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
261 addition
and
266 deletion
+261
-266
o2server/x_processplatform_assemble_surface/src/main/java/com/x/processplatform/assemble/surface/jaxrs/form/ActionGet.java
...rocessplatform/assemble/surface/jaxrs/form/ActionGet.java
+44
-43
o2server/x_processplatform_assemble_surface/src/main/java/com/x/processplatform/assemble/surface/jaxrs/form/ActionGetMobile.java
...platform/assemble/surface/jaxrs/form/ActionGetMobile.java
+45
-43
o2server/x_processplatform_assemble_surface/src/main/java/com/x/processplatform/assemble/surface/jaxrs/form/ActionGetWithApplication.java
...assemble/surface/jaxrs/form/ActionGetWithApplication.java
+46
-53
o2server/x_processplatform_assemble_surface/src/main/java/com/x/processplatform/assemble/surface/jaxrs/form/ActionGetWithApplicationMobile.java
...le/surface/jaxrs/form/ActionGetWithApplicationMobile.java
+50
-49
o2server/x_processplatform_assemble_surface/src/main/java/com/x/processplatform/assemble/surface/jaxrs/form/FormAction.java
...ocessplatform/assemble/surface/jaxrs/form/FormAction.java
+70
-70
o2server/x_processplatform_core_entity/src/main/java/com/x/processplatform/core/entity/element/End.java
...n/java/com/x/processplatform/core/entity/element/End.java
+6
-8
未找到文件。
o2server/x_processplatform_assemble_surface/src/main/java/com/x/processplatform/assemble/surface/jaxrs/form/ActionGet.java
浏览文件 @
d36d300e
//package com.x.processplatform.assemble.surface.jaxrs.form;
//
//import com.x.base.core.container.EntityManagerContainer;
//import com.x.base.core.container.factory.EntityManagerContainerFactory;
//import com.x.base.core.project.exception.ExceptionEntityNotExist;
//import com.x.base.core.project.gson.GsonPropertyObject;
//import com.x.base.core.project.http.ActionResult;
//import com.x.base.core.project.http.EffectivePerson;
//import com.x.processplatform.assemble.surface.Business;
//import com.x.processplatform.core.entity.element.Form;
//
//class ActionGet extends BaseAction {
//
// ActionResult<Wo> execute(EffectivePerson effectivePerson, String flag) throws Exception {
// try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {
// ActionResult<Wo> result = new ActionResult<>();
// Business business = new Business(emc);
// Form form = business.form().pick(flag);
// if (null == form) {
// throw new ExceptionEntityNotExist(flag, Form.class);
// }
// Wo wo = new Wo();
// wo.setData(form.getDataOrMobileData());
// result.setData(wo);
// return result;
// }
// }
//
// public static class Wo extends GsonPropertyObject {
//
// private String data;
//
// public String getData() {
// return data;
// }
//
// public void setData(String data) {
// this.data = data;
// }
//
// }
//
//}
package
com.x.processplatform.assemble.surface.jaxrs.form
;
import
com.x.base.core.container.EntityManagerContainer
;
import
com.x.base.core.container.factory.EntityManagerContainerFactory
;
import
com.x.base.core.project.exception.ExceptionEntityNotExist
;
import
com.x.base.core.project.http.ActionResult
;
import
com.x.base.core.project.http.EffectivePerson
;
import
com.x.base.core.project.jaxrs.WoFastETag
;
import
com.x.processplatform.assemble.surface.Business
;
import
com.x.processplatform.core.entity.element.Form
;
class
ActionGet
extends
BaseAction
{
ActionResult
<
Wo
>
execute
(
EffectivePerson
effectivePerson
,
String
flag
)
throws
Exception
{
try
(
EntityManagerContainer
emc
=
EntityManagerContainerFactory
.
instance
().
create
())
{
ActionResult
<
Wo
>
result
=
new
ActionResult
<>();
Business
business
=
new
Business
(
emc
);
Form
form
=
business
.
form
().
pick
(
flag
);
if
(
null
==
form
)
{
throw
new
ExceptionEntityNotExist
(
flag
,
Form
.
class
);
}
Wo
wo
=
new
Wo
();
wo
.
setData
(
form
.
getDataOrMobileData
());
wo
.
setFastETag
(
form
.
getId
()
+
form
.
getUpdateTime
().
getTime
());
result
.
setData
(
wo
);
return
result
;
}
}
public
static
class
Wo
extends
WoFastETag
{
private
String
data
;
public
String
getData
()
{
return
data
;
}
public
void
setData
(
String
data
)
{
this
.
data
=
data
;
}
}
}
o2server/x_processplatform_assemble_surface/src/main/java/com/x/processplatform/assemble/surface/jaxrs/form/ActionGetMobile.java
浏览文件 @
d36d300e
//package com.x.processplatform.assemble.surface.jaxrs.form;
//
//import com.x.base.core.container.EntityManagerContainer;
//import com.x.base.core.container.factory.EntityManagerContainerFactory;
//import com.x.base.core.project.exception.ExceptionEntityNotExist;
//import com.x.base.core.project.gson.GsonPropertyObject;
//import com.x.base.core.project.http.ActionResult;
//import com.x.base.core.project.http.EffectivePerson;
//import com.x.processplatform.assemble.surface.Business;
//import com.x.processplatform.core.entity.element.Form;
//
//class ActionGetMobile extends BaseAction {
//
// ActionResult<Wo> execute(EffectivePerson effectivePerson, String flag) throws Exception {
// try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {
// ActionResult<Wo> result = new ActionResult<>();
// Business business = new Business(emc);
// Form form = business.form().pick(flag);
// if (null == form) {
// throw new ExceptionEntityNotExist(flag, Form.class);
// }
// Wo wo = new Wo();
// wo.setData(form.getMobileDataOrData());
// result.setData(wo);
// return result;
// }
// }
//
// public static class Wo extends GsonPropertyObject {
//
// private String data;
//
// public String getData() {
// return data;
// }
//
// public void setData(String data) {
// this.data = data;
// }
//
// }
//
//}
package
com.x.processplatform.assemble.surface.jaxrs.form
;
import
com.x.base.core.container.EntityManagerContainer
;
import
com.x.base.core.container.factory.EntityManagerContainerFactory
;
import
com.x.base.core.project.exception.ExceptionEntityNotExist
;
import
com.x.base.core.project.gson.GsonPropertyObject
;
import
com.x.base.core.project.http.ActionResult
;
import
com.x.base.core.project.http.EffectivePerson
;
import
com.x.base.core.project.jaxrs.WoFastETag
;
import
com.x.processplatform.assemble.surface.Business
;
import
com.x.processplatform.core.entity.element.Form
;
class
ActionGetMobile
extends
BaseAction
{
ActionResult
<
Wo
>
execute
(
EffectivePerson
effectivePerson
,
String
flag
)
throws
Exception
{
try
(
EntityManagerContainer
emc
=
EntityManagerContainerFactory
.
instance
().
create
())
{
ActionResult
<
Wo
>
result
=
new
ActionResult
<>();
Business
business
=
new
Business
(
emc
);
Form
form
=
business
.
form
().
pick
(
flag
);
if
(
null
==
form
)
{
throw
new
ExceptionEntityNotExist
(
flag
,
Form
.
class
);
}
Wo
wo
=
new
Wo
();
wo
.
setData
(
form
.
getMobileDataOrData
());
wo
.
setFastETag
(
form
.
getId
()
+
form
.
getUpdateTime
().
getTime
());
result
.
setData
(
wo
);
return
result
;
}
}
public
static
class
Wo
extends
WoFastETag
{
private
String
data
;
public
String
getData
()
{
return
data
;
}
public
void
setData
(
String
data
)
{
this
.
data
=
data
;
}
}
}
o2server/x_processplatform_assemble_surface/src/main/java/com/x/processplatform/assemble/surface/jaxrs/form/ActionGetWithApplication.java
浏览文件 @
d36d300e
//package com.x.processplatform.assemble.surface.jaxrs.form;
//
//import com.x.base.core.container.EntityManagerContainer;
//import com.x.base.core.container.factory.EntityManagerContainerFactory;
//import com.x.base.core.project.exception.ExceptionEntityNotExist;
//import com.x.base.core.project.gson.GsonPropertyObject;
//import com.x.base.core.project.http.ActionResult;
//import com.x.base.core.project.http.EffectivePerson;
//import com.x.processplatform.assemble.surface.Business;
//import com.x.processplatform.core.entity.element.Application;
//import com.x.processplatform.core.entity.element.Form;
//
//class ActionGetWithApplication extends BaseAction {
//
// ActionResult<Wo> execute(EffectivePerson effectivePerson, String applicationFlag, String flag) throws Exception {
// try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {
// ActionResult<Wo> result = new ActionResult<>();
// Business business = new Business(emc);
// Application application = business.application().pick(applicationFlag);
// if (null == application) {
// throw new ExceptionEntityNotExist(applicationFlag, Application.class);
// }
// Form form = business.form().pick(application, flag);
// // Wo wo = Wo.copier.copy(form);
// Wo wo = new Wo();
// wo.setData(form.getDataOrMobileData());
// result.setData(wo);
// return result;
// }
// }
//
//// public static class Wo extends Form {
////
//// private static final long serialVersionUID = 1541438199059150837L;
////
//// static WrapCopier<Form, Wo> copier = WrapCopierFactory.wo(Form.class, Wo.class, null,
//// JpaObject.FieldsInvisible);
////
//// }
// public static class Wo extends GsonPropertyObject {
//
// private String data;
//
// public String getData() {
// return data;
// }
//
// public void setData(String data) {
// this.data = data;
// }
//
// }
//}
package
com.x.processplatform.assemble.surface.jaxrs.form
;
import
com.x.base.core.container.EntityManagerContainer
;
import
com.x.base.core.container.factory.EntityManagerContainerFactory
;
import
com.x.base.core.project.exception.ExceptionEntityNotExist
;
import
com.x.base.core.project.gson.GsonPropertyObject
;
import
com.x.base.core.project.http.ActionResult
;
import
com.x.base.core.project.http.EffectivePerson
;
import
com.x.base.core.project.jaxrs.WoFastETag
;
import
com.x.processplatform.assemble.surface.Business
;
import
com.x.processplatform.core.entity.element.Application
;
import
com.x.processplatform.core.entity.element.Form
;
class
ActionGetWithApplication
extends
BaseAction
{
ActionResult
<
Wo
>
execute
(
EffectivePerson
effectivePerson
,
String
applicationFlag
,
String
flag
)
throws
Exception
{
try
(
EntityManagerContainer
emc
=
EntityManagerContainerFactory
.
instance
().
create
())
{
ActionResult
<
Wo
>
result
=
new
ActionResult
<>();
Business
business
=
new
Business
(
emc
);
Application
application
=
business
.
application
().
pick
(
applicationFlag
);
if
(
null
==
application
)
{
throw
new
ExceptionEntityNotExist
(
applicationFlag
,
Application
.
class
);
}
Form
form
=
business
.
form
().
pick
(
application
,
flag
);
Wo
wo
=
new
Wo
();
wo
.
setData
(
form
.
getDataOrMobileData
());
wo
.
setFastETag
(
form
.
getId
()
+
form
.
getUpdateTime
().
getTime
());
result
.
setData
(
wo
);
return
result
;
}
}
public
static
class
Wo
extends
WoFastETag
{
private
String
data
;
public
String
getData
()
{
return
data
;
}
public
void
setData
(
String
data
)
{
this
.
data
=
data
;
}
}
}
o2server/x_processplatform_assemble_surface/src/main/java/com/x/processplatform/assemble/surface/jaxrs/form/ActionGetWithApplicationMobile.java
浏览文件 @
d36d300e
//package com.x.processplatform.assemble.surface.jaxrs.form;
//
//import com.x.base.core.container.EntityManagerContainer;
//import com.x.base.core.container.factory.EntityManagerContainerFactory;
//import com.x.base.core.entity.JpaObject;
//import com.x.base.core.project.bean.WrapCopier;
//import com.x.base.core.project.bean.WrapCopierFactory;
//import com.x.base.core.project.exception.ExceptionEntityNotExist;
//import com.x.base.core.project.gson.GsonPropertyObject;
//import com.x.base.core.project.http.ActionResult;
//import com.x.base.core.project.http.EffectivePerson;
//import com.x.processplatform.assemble.surface.Business;
//import com.x.processplatform.core.entity.element.Application;
//import com.x.processplatform.core.entity.element.Form;
//
//class ActionGetWithApplicationMobile extends BaseAction {
//
// ActionResult<Wo> execute(EffectivePerson effectivePerson, String applicationFlag, String flag) throws Exception {
// try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {
// ActionResult<Wo> result = new ActionResult<>();
// Business business = new Business(emc);
// Application application = business.application().pick(applicationFlag);
// if (null == application) {
// throw new ExceptionEntityNotExist(applicationFlag, Application.class);
// }
// Form form = business.form().pick(application, flag);
// //Wo wo = Wo.copier.copy(form);
// Wo wo = new Wo();
// wo.setData(form.getMobileDataOrData());
// result.setData(wo);
// return result;
// }
// }
//
// public static class Wo extends GsonPropertyObject {
//
// private String data;
//
// public String getData() {
// return data;
// }
//
// public void setData(String data) {
// this.data = data;
// }
//
// }
//
//}
package
com.x.processplatform.assemble.surface.jaxrs.form
;
import
com.x.base.core.container.EntityManagerContainer
;
import
com.x.base.core.container.factory.EntityManagerContainerFactory
;
import
com.x.base.core.entity.JpaObject
;
import
com.x.base.core.project.bean.WrapCopier
;
import
com.x.base.core.project.bean.WrapCopierFactory
;
import
com.x.base.core.project.exception.ExceptionEntityNotExist
;
import
com.x.base.core.project.gson.GsonPropertyObject
;
import
com.x.base.core.project.http.ActionResult
;
import
com.x.base.core.project.http.EffectivePerson
;
import
com.x.base.core.project.jaxrs.WoFastETag
;
import
com.x.processplatform.assemble.surface.Business
;
import
com.x.processplatform.core.entity.element.Application
;
import
com.x.processplatform.core.entity.element.Form
;
class
ActionGetWithApplicationMobile
extends
BaseAction
{
ActionResult
<
Wo
>
execute
(
EffectivePerson
effectivePerson
,
String
applicationFlag
,
String
flag
)
throws
Exception
{
try
(
EntityManagerContainer
emc
=
EntityManagerContainerFactory
.
instance
().
create
())
{
ActionResult
<
Wo
>
result
=
new
ActionResult
<>();
Business
business
=
new
Business
(
emc
);
Application
application
=
business
.
application
().
pick
(
applicationFlag
);
if
(
null
==
application
)
{
throw
new
ExceptionEntityNotExist
(
applicationFlag
,
Application
.
class
);
}
Form
form
=
business
.
form
().
pick
(
application
,
flag
);
Wo
wo
=
new
Wo
();
wo
.
setData
(
form
.
getMobileDataOrData
());
wo
.
setFastETag
(
form
.
getId
()
+
form
.
getUpdateTime
().
getTime
());
result
.
setData
(
wo
);
return
result
;
}
}
public
static
class
Wo
extends
WoFastETag
{
private
String
data
;
public
String
getData
()
{
return
data
;
}
public
void
setData
(
String
data
)
{
this
.
data
=
data
;
}
}
}
o2server/x_processplatform_assemble_surface/src/main/java/com/x/processplatform/assemble/surface/jaxrs/form/FormAction.java
浏览文件 @
d36d300e
...
...
@@ -66,79 +66,79 @@ public class FormAction extends StandardJaxrsAction {
// asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
// }
// @JaxrsMethodDescribe(value = "获取表单
.", action = ActionGet.class)
//
@GET
//
@Path("{flag}")
//
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
//
@Consumes(MediaType.APPLICATION_JSON)
//
public void get(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request,
//
@JaxrsParameterDescribe("表单标识") @PathParam("flag") String flag) {
//
ActionResult<ActionGet.Wo> result = new ActionResult<>();
//
EffectivePerson effectivePerson = this.effectivePerson(request);
//
try {
//
result = new ActionGet().execute(effectivePerson, flag);
//
} catch (Exception e) {
//
logger.error(e, effectivePerson, request, null);
//
result.error(e);
//
}
//
asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
//
}
@JaxrsMethodDescribe
(
value
=
"获取表单内容
."
,
action
=
ActionGet
.
class
)
@GET
@Path
(
"{flag}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
get
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"表单标识"
)
@PathParam
(
"flag"
)
String
flag
)
{
ActionResult
<
ActionGet
.
Wo
>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
try
{
result
=
new
ActionGet
().
execute
(
effectivePerson
,
flag
);
}
catch
(
Exception
e
)
{
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
result
.
error
(
e
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
// @JaxrsMethodDescribe(value = "获取移动端表单
.", action = ActionGetMobile.class)
//
@GET
//
@Path("{flag}/mobile")
//
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
//
@Consumes(MediaType.APPLICATION_JSON)
//
public void getMobile(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request,
//
@JaxrsParameterDescribe("表单标识") @PathParam("flag") String flag) {
//
ActionResult<ActionGetMobile.Wo> result = new ActionResult<>();
//
EffectivePerson effectivePerson = this.effectivePerson(request);
//
try {
//
result = new ActionGetMobile().execute(effectivePerson, flag);
//
} catch (Exception e) {
//
logger.error(e, effectivePerson, request, null);
//
result.error(e);
//
}
//
asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
//
}
@JaxrsMethodDescribe
(
value
=
"获取移动端表单内容
."
,
action
=
ActionGetMobile
.
class
)
@GET
@Path
(
"{flag}/mobile"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
getMobile
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"表单标识"
)
@PathParam
(
"flag"
)
String
flag
)
{
ActionResult
<
ActionGetMobile
.
Wo
>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
try
{
result
=
new
ActionGetMobile
().
execute
(
effectivePerson
,
flag
);
}
catch
(
Exception
e
)
{
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
result
.
error
(
e
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
//
@JaxrsMethodDescribe(value = "根据标识和应用标识获取表单.", action = ActionGetWithApplication.class)
//
@GET
//
@Path("{flag}/application/{applicationFlag}")
//
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
//
@Consumes(MediaType.APPLICATION_JSON)
//
public void getWithApplication(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request,
//
@JaxrsParameterDescribe("表单标识") @PathParam("flag") String flag,
//
@JaxrsParameterDescribe("应用标识") @PathParam("applicationFlag") String applicationFlag) {
//
ActionResult<ActionGetWithApplication.Wo> result = new ActionResult<>();
//
EffectivePerson effectivePerson = this.effectivePerson(request);
//
try {
//
result = new ActionGetWithApplication().execute(effectivePerson, applicationFlag, flag);
//
} catch (Exception e) {
//
logger.error(e, effectivePerson, request, null);
//
result.error(e);
//
}
//
asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
//
}
@JaxrsMethodDescribe
(
value
=
"根据标识和应用标识获取表单."
,
action
=
ActionGetWithApplication
.
class
)
@GET
@Path
(
"{flag}/application/{applicationFlag}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
getWithApplication
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"表单标识"
)
@PathParam
(
"flag"
)
String
flag
,
@JaxrsParameterDescribe
(
"应用标识"
)
@PathParam
(
"applicationFlag"
)
String
applicationFlag
)
{
ActionResult
<
ActionGetWithApplication
.
Wo
>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
try
{
result
=
new
ActionGetWithApplication
().
execute
(
effectivePerson
,
applicationFlag
,
flag
);
}
catch
(
Exception
e
)
{
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
result
.
error
(
e
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
//
@JaxrsMethodDescribe(value = "根据标识和应用标识获取移动端表单.", action = ActionGetWithApplicationMobile.class)
//
@GET
//
@Path("{flag}/application/{applicationFlag}/mobile")
//
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
//
@Consumes(MediaType.APPLICATION_JSON)
//
public void getWithApplicationMobile(@Suspended final AsyncResponse asyncResponse,
//
@Context HttpServletRequest request, @JaxrsParameterDescribe("表单标识") @PathParam("flag") String flag,
//
@JaxrsParameterDescribe("应用标识") @PathParam("applicationFlag") String applicationFlag) {
//
ActionResult<ActionGetWithApplicationMobile.Wo> result = new ActionResult<>();
//
EffectivePerson effectivePerson = this.effectivePerson(request);
//
try {
//
result = new ActionGetWithApplicationMobile().execute(effectivePerson, applicationFlag, flag);
//
} catch (Exception e) {
//
logger.error(e, effectivePerson, request, null);
//
result.error(e);
//
}
//
asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
//
}
@JaxrsMethodDescribe
(
value
=
"根据标识和应用标识获取移动端表单."
,
action
=
ActionGetWithApplicationMobile
.
class
)
@GET
@Path
(
"{flag}/application/{applicationFlag}/mobile"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
getWithApplicationMobile
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"表单标识"
)
@PathParam
(
"flag"
)
String
flag
,
@JaxrsParameterDescribe
(
"应用标识"
)
@PathParam
(
"applicationFlag"
)
String
applicationFlag
)
{
ActionResult
<
ActionGetWithApplicationMobile
.
Wo
>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
try
{
result
=
new
ActionGetWithApplicationMobile
().
execute
(
effectivePerson
,
applicationFlag
,
flag
);
}
catch
(
Exception
e
)
{
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
result
.
error
(
e
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"查询表单,如果有表单那么返回表单id,如果表单不存在且是已完成工作,那么返回storeForm."
,
action
=
V2LookupWorkOrWorkCompleted
.
class
)
@GET
...
...
o2server/x_processplatform_core_entity/src/main/java/com/x/processplatform/core/entity/element/End.java
浏览文件 @
d36d300e
...
...
@@ -15,22 +15,20 @@ import javax.persistence.OrderColumn;
import
javax.persistence.Table
;
import
javax.persistence.UniqueConstraint
;
import
org.apache.openjpa.persistence.PersistentCollection
;
import
org.apache.openjpa.persistence.jdbc.ContainerTable
;
import
org.apache.openjpa.persistence.jdbc.ElementColumn
;
import
org.apache.openjpa.persistence.jdbc.ElementIndex
;
import
org.apache.openjpa.persistence.jdbc.Index
;
import
com.x.base.core.entity.JpaObject
;
import
com.x.base.core.entity.annotation.CheckPersist
;
import
com.x.base.core.entity.annotation.ContainerEntity
;
import
com.x.base.core.entity.annotation.Flag
;
import
com.x.base.core.entity.annotation.IdReference
;
import
com.x.base.core.project.annotation.FieldDescribe
;
import
com.x.base.core.project.tools.ListTools
;
import
com.x.processplatform.core.entity.PersistenceProperties
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.openjpa.persistence.PersistentCollection
;
import
org.apache.openjpa.persistence.jdbc.ContainerTable
;
import
org.apache.openjpa.persistence.jdbc.ElementColumn
;
import
org.apache.openjpa.persistence.jdbc.ElementIndex
;
import
org.apache.openjpa.persistence.jdbc.Index
;
@Entity
@ContainerEntity
(
dumpSize
=
5
,
type
=
ContainerEntity
.
Type
.
element
,
reference
=
ContainerEntity
.
Reference
.
strong
)
@Table
(
name
=
PersistenceProperties
.
Element
.
End
.
table
,
uniqueConstraints
=
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录