Call instance method from workflow using class
By Rakesh Dhudipala from Link
Scenario:
Below document explains how to call instance Method from Workflow task
Prerequisites:
ABAP objects
Step by step Procedure:
Go to SE24, create a class by name ZCL_TEST_WORKFLOW.
Implement interface IF_WORKFLOW in the class.
Create one instance method called GET_RESULT
Define below attributes in the Attributes TAB
Create below methods in the methods tab.
1) Constructor:
Define with below parameters.
In the 'Constructor' write the below code.
method CONSTRUCTOR.
m_lpor-INSTID = i_id.
m_lpor-CATID = 'CL'.
m_lpor-TYPEID = 'ZCL_TEST_WORKFLOW'.
endmethod.
2) GET_RESULT:
Method contains below parameters.
Write the below code in the GET_RESULT method.
method GET_RESULT.
p3 = p1 * p2.
endmethod.
3) Create:
Create method contains below parameters.
Write the below logic in the CREATE method.
method CREATE.
CREATE OBJECT e_instance
TYPE
zcl_test_workflow
EXPORTING
i_id = i_id.
endmethod.
In BI_PERSISTENT~FIND_BY_LPOR interface method write the below code
method BI_PERSISTENT~FIND_BY_LPOR.
CREATE OBJECT result
TYPE
zcl_test_workflow
EXPORTING
i_id = lpor-instid(10).
endmethod.
In the BI_PERSISTENT~LPOR method write the below code
method BI_PERSISTENT~LPOR.
result = me->M_Lpor.
endmethod.
Go to SWDD transaction and create new workflow.
Create new activity
Create new task and enter the CREATE method
This will map the below parameters
Create one more task and enter the get_result method in the task like below
Now container mapping with the below parameters
Assign the agents to the task
Make task as general task
Now if we run the workflow it will executes the instance method.
相关推荐
该文档使用面是向对象类来触发工作流的一个实例
Using Domino Workflow
An Overview of Workflow Management:From Process Modeling to Workflow Automation Infrastructure
Method for reducing cloud workflow completion time under the
Improved : Better performance for saving/loading workflow definitions, instances and tasks when using ADO Fixed : Workfklow blocks not displayed when language different than English was used Fixed : ...
workflow node flow instance 工作流-workflow
企业信息管理中的工作流引擎实现方法研究,邱小平,石钢巧,本文基于数据库技术详细地探讨了一种工作流引擎的实现方法,在工作流管理联盟的相关指引下,首先基于过程模型给出了工作流引擎的
为SharePoint 2010 Workflow 开发 Custom Workflow Activity(Develop Custom Workflow Activity for SharePoint 2010 Workflow). SharePoint2010提供了很多有用的开箱即用的Activity(活动action),我们可以在...
回想自己学习Domino Workflow的经历,也算有些坎坷,因为这方面的资料很少,Domino Workflow的帮助库虽然比较完整,但是缺乏一个主线,而且没有一些实用技巧的介绍。心中一直有一个想法,就是将自己掌握的Domino ...
WorkFlow软件说明文档
The book presents a flexible workflow method that helps to make common design tasks easier and gives users the information needed to incorporate varying degrees of SketchUp into their design process....
To add a new job login workflow In the Login Setup Folders cabinet, open the Workflows folder. Right-click and choose Add > Job Login Workflow. The Workflow property sheet appears. Enter a Name and ...
workflow Domino workflow Domino workflow Domino workflow Domino
windows_workflow开发案例
Lesson 2: Overview of Oracle Workflow Objectives 2-2 Workflow Terms 2-3 Oracle Workflow Overview 2-4 Major Components 2-5 Oracle Workflow Builder 2-6 Workflow Engine 2-7 Workflow Process Definition 2-...
Workflow Management Coalition Workflow Standard Workflow Process Definition Interface - XML Process Definition Language
Fire Workflow工作流开发程序包
This book is perfectly suited to anyone using or considering Microsoft's Windows Workflow Foundation. It describes what WF can do for you and how to quickly learn the basic concepts needed to be ...