inputparams
which will be evaluated by WSGetWorkItems.executeparams
by WSExecuteWorkItem will then again be passed as
parameters to this customization point executeexpr
.mobileapplication
which can be
interpreted by a client to know what is the intended work.
activity ConfTravelExpenseReport {
...
step OpenContentTravelExpenseReport required multiple {
execute = OpenContent;
precond = expression {
// hide this work item in the mobile worklist app
return !activity.IsWorkItemCalledByWebservice();
}
}
...
}
#TV.WFVAR_THIS.boenterremark = ::remark;
to store the remark on the object.
coouser.SignObjectWithType(#TV.WFVAR_THIS, <signtype>, ::remark, ::password, ::pdfsignatures);
to sign the object in the executeexpr.
customize CPMobileAppMapping <OpenObject> {
mobileapplication = "OpenObject";
inputparams = expression {
}
executeexpr = expression {
}
}
customize CPMobileAppMapping <ObjectSignAcceptApproval> {
mobileapplication = "SignObject";
inputparams = expression {
dictionary dict = coouser.EvaluateSignatureSettings(#TV.WFVAR_THIS, #SIGN_DIGITAL);
if (#TV.WFVAR_ACTIVITY.actinstremark) {
dict.actinstremark = #TV.WFVAR_ACTIVITY.actinstremark;
}
return dict;
}
executeexpr = expression {
coouser.SignObjectWithType(#TV.WFVAR_THIS, #SIGN_DIGITAL, ::remark, ::password, ::pdfsignatures);
}
}
customize CPMobileAppMapping<AddRemark> {
mobileapplication = "RemarkObject";
inputparams = expression {
return {
useremark: true,
mustremark: true,
remarks: #TV.WFVAR_THIS.boremarks
};
}
executeexpr = expression {
if (::remark) {
#TV.WFVAR_THIS.ObjectLock(true, true);
#TV.WFVAR_THIS.boenterremark = ::remark;
}
}
}
customize CPMobileAppMapping <ObjectWFUpload> {
mobileapplication = "UploadFiles";
inputparams = expression {
if (#TV.WFVAR_THIS.HasAttribute(cootx, #content)) {
// do not provide sys_view for content object
return;
}
// provide first drop target
Object[] attrdefs = #TV.WFVAR_THIS.GetDropTargets();
object viewattrdef = (count(attrdefs) == 1 && #TV.WFVAR_THIS.CheckSetAccess(cootx, attrdefs)) ? attrdefs[0] : null;
if (viewattrdef) {
return {
sys_view : viewattrdef.GetAddress()
}
}
}
}
void
FSCOWSWF@1.1001:CPMobileAppMapping(
key ComponentObject
application,
out direct string
mobileapplication,
out dictionary
inputparams,
out any
executeexpr)
Name |
Description |
application |
Can be an action (to override all mapped virtual applications, e.g.: OpenObject) or
the direct application which should be implemented.
|
mobileapplication |
The reference of the view that should be shown on the device.
|
inputparams |
Defines a dictionary to transport data to the mobile application.
Either return some global configurations or access the actual activity through transaction variables:
|
executeexpr |
This expression will be executed when WSExecuteWorkItem is called for a work item which
actually requires a GUI, but can also be executed as expression when the relevant user information has
been entered.
Please check the required parameters - they should be available in the global scope. The information for the activity is again available through transaction variables:
|
Additional Information