Discussion
what is the difference between data class and work class
Hello Team,
Can any body explain what is the difference between Data Class and Work Class. Is there any relation between these and when to use Data Class and when to use Work Class. it would be better understand me if you guys can explain using any progarmming language like java.
Kinds,
Dhanunjaya.
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
When you need to do some "things", you create a class. But what type of class it is depends on what this class directly inherits in PRPC.
If you want the class to represent a Data Model, you create a class that directly inherit the "Data-" parent class, so this becomes a "Data Class". It's job is to be a data model for whatever data you want to represent in PRPC. Usually a Data Class is not instantiated, and it is used more as a template in the Work Class for containing data that is pertinent to the work to be resolved.
If you want the class to perform some work or some case, then you will need to directly inherit the "Work" class as a parent. This makes the class you are creating a "Work Class". It's job is to be instantiated as a Work Object or a Case Object to contain data related to the work it is doing.
Basically, the difference is what they do. In summary, a Data Class is a template for Data Model, and a Work Class represent a work type or case type for instantiating and resolving work.