Monday, September 2, 2019

Messaging Subsystems in WCS

1.Messaging Subsystem

The WebSphere Commerce messaging system allows you to manage all aspects of defining and sending messages generated within WebSphere Commerce. It allows you to control the manner in which administrators, customers, back-end and fulfillment center systems are notified of various events, such as customer orders or system errors.

To configure the outbound messaging system use the Administration Console. The messaging system can send messages using transports such as e-mail using SMTP and file using UTF-8 encoding. For e-mail the supported outbound protocol is SMTP, the message encoding depends on the preferred language of the user, and the store/site default language. Optionally, you can configure the messaging system to send messages to a back-end or fulfillment center system using IBM MQ.

2. Features of the outbound Messaging environment

2.1.Composition service

Some of the WebSphere Commerce messages use the message composition services. Through the use of JavaServer Page files, the composition services generate a message before it is sent through the transport. You can modify the message templates just as you would any other JavaServer Page.

2.2.Multiple message transmissions support
2.3.Multiple notification messages over the same transport
2.4.Send a broadcast email to multiple recipients.
2.5.Support for three processing types:
sendTransacted:-Use for messages sent upon successful completion of the current transaction.
sendImmediate:-Use for messages sent when the event takes place in WebSphere Commerce. The message is sent whether the transaction commits or not.
sendReceiveImmediate (Request-reply):-Use for messages that require a response message from the back-end system.

Trading Subsystem in WCS

1.Trading Subsystem

The trading subsystem in WebSphere Commerce provides the logic, function and data relevant for negotiating the price and quantity of a product or set of products between the buyer and seller organization. The trading subsystem includes auctions, contracts, and Request for Quote (RFQ) components that are used to carry out specific transactions between organizations.

2.Terminologies used in Trading subsystem

2.1.Business Relationship Management


To customize what a customer can do in a store use the business relationship management system. By using this system, you can entitle customers to various aspects of a store such as what products they can purchase, the price they pay, and what payment methods a store accepts.
Customer entitlement is controlled by business accounts, contracts, and business policies.

The default customer entitlement is defined by a store's default contract. This default contract typically specifies that customers can access the master catalog and purchase products at standard prices.

2.2.Contracts

Contracts enable a customer organization to purchase products from a store at a specified price for a specified time under specific conditions. You can use WebSphere Commerce Accelerator to manage contracts. Specifically, you can create, change, deploy, suspend, resume, and unlock contracts.

A contract consists of the following elements.

2.2.1.Profile

The contract profile contains the identifying information for the contract. This information includes a unique name for the contract, a short description, and a time period for which the contract is valid.

2.2.2.Participants

Contract participants are the organizations that take part in the contract. There is a buyer organization, a seller organization, and contacts at both organizations.

2.2.3.Terms and conditions

Contract terms and conditions are the rules that cover the actual implementation of the contract. Contract terms and conditions cover such information as product pricing, returns and refunds, payment, shipping, billing, and order approval.


2.2.4.Attachments

Contract attachments cover any information that is not covered by the previous elements such as file attachments that provide additional information about the contract and any general remarks about the contract. WebSphere Commerce uses the Universal Resource Identifiers (URIs) for contract attachments, not the actual attachments.


2.2.5.References

A contract can refer to another contract to share its terms and conditions. For example, contract A can refer to contract B. Thus, a buyer who is entitled to contract A is entitled to all the terms and conditions from contract A, and to all the terms and conditions in contract B.

2.3.Business Policies

Business policies are sets of rules followed by a store that define business processes, industry practices, and the scope and characteristics of a store's or group of stores' offerings.


Business policies are enforced with a combination of one or more business policy commands that implement the rules of the business policy. Each business policy command is a Java class. A business policy command can be shared by multiple business policies. The behavior of the business policy command is determined by the parameters that are passed to the command.
Parameters affecting the function of a business policy command can be introduced in three places:
The contract term and condition, which refers to the business policy
The business policy definition
The business policy command that enforces the policy


2.3.1.Catalog business policies
Catalog business policies define the scope and characteristics of the catalog of products for sale in a store which includes the prices and the categorization of products in a store's catalog.
2.3.2.Payment business policies
Invoicing, payment, and refund business policies define how a store accepts payments, pays refunds, and the format of a store's invoices.
2.3.3.Returns business policies
Returns business policies define whether refunds are accepted, the time period they are accepted for, and any restocking fees that are applied to returns.
2.3.4.Shipping business policies
Shipping business policies define the shipping providers a store can use and the charges that are associated with each type.
2.3.5.Referral interface business policies
Referral interface business policies define the relationship between a proxy store and a remote store.

2.4.Request for Quote

A buyer can create a Request for Quote (RFQ), by using the WebSphere Commerce Accelerator, for unique variations of goods and services that are offered in a catalog. If buyers cannot find a product or category that match their needs within a catalog, they can select attributes from the personalized dictionary to precisely define the product specifications. A buyer can also create an RFQ by using the contents in their shopping cart, or add a shopping cart to an existing RFQ.


There are three RFQ notification messages: The RFQ was submitted successfully; The RFQ was closed successfully; and The RFQ was completed successfully. 

WCS Subsystems


  • Catalog Subsystem
  • Order Subsystem
  • Member Subsystem
  • Trading Subsystem
  • Marketing and Merchandising subsystem
  • Payment Subsystem

WCS Organizational Structure


  • Consumer Direct
  • B2B Direct
  • Demand chain
  • Extended Sites
  • Supply chain

Controller Command and Task Command in WCS

Controller Command is the command that gets called upon a request, just like We have actions in struts and controller in Spring. Task is a step in this bigger process. Task command are the commands that perform specific task for a controller command, like service classes in other frameworks. In order to complete the request, a controller command may invoke multiple task commands.

In an MVC architecture perspective when a request is submitted the controller command is invoked and controller command may invoke multiple task commands for the execution of a specific service.

Parenting Skills

Parenting

“Child is the father of a man “these lines by William Wordsworth tells us the significance of parenting. Here are some important points we should keep in mind to improve the parenting skills.

1. Respect your child
Respect your children and yourself and positive discipline is an outcome of mutual respect.
2. Love them unconditionally
The greatest thing that you can give to your kids is the gift of unconditional love and acceptance. Love is all about what we give not what we get. Practice doing something for your kids each day with love alone.
3. Don’t compare your children to others
Each child is unique. The point, of course, is to understand and grow your kids for who they are, not who you can compare them to. There is only one comparison that is actually important – and that’s comparing a child to who they were before.
4. Life is a great teacher
Don’t be too quick to save your child from the results of their own actions if the consequences are not severe. Let the divine teacher to teach your child whenever it is needed. It is easier to build strong children than to repair broken men.
5. Be a role model
Children have never been very good at listening to their elders, but they have never failed to imitate them. The best teachers of humanity are the lives of great men. You are in charge of your feelings, beliefs, and actions. And you teach others how to behave toward you.  While you cannot change other people, you can influence them through your own behaviours and actions.  By being a living
role model of what you want to receive from others, you create more of what you want in your life.
6.Be assertive
An assertive parent is neither authoritative nor permissive. She stands up for her children's rights, but she does not condone wrong-doing. She listens to her child's side of the story, but is not afraid to point out errors in the child's reasoning.
7. Teach your children that it is okay for them to be different
“Try to give my son the strength not to follow the crowd when everyone is getting on the band wagon. Teach him to have faith in his own ideas even if everyone tells him they are wrong.”These are the lines from the Lincoln’s letter to his son’s teacher.
8.Your child is not an extension of yourself
If you living out your own dreams through your child then it is dangerous , your child is unique and not an extension of yourself. If you're placing undue pressure on your child to achieve your unfulfilled hopes, it should be frustrating for the kid.
9.Avoid public humiliation
If they misbehave in public, take them aside, and scold them privately.
10.Control your temper
Anger is a normal and even healthy emotion — but it's important to deal with it in a positive way. Uncontrolled anger can take a toll on both your health and your relationships.
11.Give up your vices
Gambling, alcohol and drugs can jeopardize your child's financial security. Smoking, for example, almost always introduces health hazards to your child's environment.
12.Listen to your child
Listening to your child's perspective will teach you a lot. Kids are smarter than most grown-ups think, and they generally know what they need. Listen to your kids, and they will teach you how to raise them.
 13.Walk the Talk
From how you handle stress to how you celebrate success to how you greet a neighbor on the street, your baby is observing you and finding out how to respond in various situations."
14.Let your child make mistakes.
As parents our first inclination is to rush in and save our children when something goes wrong in their lives, or to shield them and prevent whatever the “bad” thing is from happening in the first place. Sadly, we all learn better through making our own mistakes
15.Don’t clip your child’s wings
As a parent one of the hardest things to do is watch your child make mistakes. While you may want your child to benefit from your mistakes, the greatest and most appreciated lessons are those personally learned. This can be one of our greatest parenting challenges, deciding when to step in and when to let your child experience their own mistakes.
17.Don’t try to fix everything
Give young kids a chance to find their own solutions. When you lovingly acknowledge a child's minor frustrations without immediately rushing in to save her, you teach her self-reliance and resilience.
18.Discipline is not a punishment
Enforcing limits is really about teaching kids how to behave in the world and helping them to become competent, caring, and in control.
19.Pick your battles
Avoid  arguing about little stuff and Focus on the things that really matter.
20.Create Family rituals
Family rituals passed down from generation to generation that help shape your family by creating a sense of unity, warmth and closeness. They create memories that fill your mind with peace, love, happiness, and security
21.Encourage exploration
A young child’s opinion about her capabilities is, to a large extent, based on her parent’s or caregiver’s response to her. As an adult, your role in fostering independence is to provide love and support, encourage exploration and curiosity, teach skills, and allow the child to make appropriate choices. Your enthusiasm for a child’s exploration sends a message that these activities are valued by you.
22.Teach emotional Intelligence
when you help your child understand and handle overwhelming feelings such as anger, frustration, or confusion, you develop his emotional intelligence quotient, or emotional IQ.
23.Read together
Reading aloud with children is known to be the single most important activity for building the knowledge and skills they will eventually require for learning to read. Read with your kids every day, and watch them blossom.
24.Give yourself a break
Recharge, give yourself a break  when it is needed.
Health is the greatest possession. Contentment is the greatest treasure. Confidence is the greatest friend
25.  when you make a mistake, apologize to your child
A man must be big enough to admit his mistakes, smart enough to profit from them, and strong enough to correct them.

Promotions in WCS

Promotions allow you to offer customers incentives to purchase. WebSphere Commerce supports numerous types of promotions such as price promotions, including simple discounts, and merchandise specials such as gifts with purchase, and buy one, get one; service promotions, which currently provide reduced shipping costs; and coupon promotions which mimic paper coupons you might find in your local newspaper. Promotions are created and managed using the Promotions tool in the WebSphere Commerce Accelerator. If your store has enabled workspaces, promotions may be managed using workspaces and inherit the benefits from that feature. Once created, the promotions must be deployed to the production server before they are available to customers.
Promotions can be associated with your marketing campaigns so that they are factored in to any statistics gathered for the campaign to which the promotion belongs. Additionally, you can assign a promotion code to your promotion.

Promotion groups

Promotion groups, as the name implies, group promotions according to their type. These groups have no hierarchical structure, or priority. By default, each store has the following promotion groups:
·         Product Level Promotions

o        Percentage off per item
o        Fixed amount off per item
o        Fixed amount off for all
o        Buy X, get one or more items at a discount
o        Free gift with purchase Note: If the price of a free gift exceeds the minimum qualification price of the promotion, customers may be able to order the gift item without buying anything else. This is working as designed, but may lead to unexpected behavior in some circumstances.
·         Order Level Promotions

o        Percentage off
o        Fixed amount off
o        Free gift with purchase Note: If the price of a free gift exceeds the minimum qualification price of the promotion, customers may be able to order the gift item without buying anything else. This is working as designed, but may lead to unexpected behavior in some circumstances.
·         Shipping Promotions

o        Free shipping
o        Discounted shipping for an order using a selected ship mode
o        Discounted shipping for all items using a selected ship mode
o        Discounted shipping per item using a selected ship mode

Master Catalog and Sales Catalog in WCS

What is the difference between Master Catalog and Sales Catalog?

Master Catalog

The master catalog is the central location to manage your store's merchandise. Everything you need in your store is contained within the master catalog. It is the single catalog containing all products, items, relationships, and standard prices for everything that is for sale in your store.
Every store in the WebSphere Commerce system must have a master catalog. You can share the master catalog across stores and define as many stores as needed.
In addition to creating a master catalog for your catalog management, you may also choose to create one or more sales catalogs for display purposes. A sales catalog may contain the same entries as the master catalog, but with a much more flexible structure for customer display purposes. You can have as many sales catalogs as you want. Refer to Sales catalogs for more information.
You can use the Product Management tools in the WebSphere Commerce Accelerator to view and manage your master catalog


Sales Catalog

There are two types of catalogs in a WebSphere Commerce system: master and sales. While a master catalog is the central location to manage all your store's merchandise and services, a sales catalog is a subset of the merchandise and services found in the master catalog.

Every store in the WebSphere Commerce system must have a master catalog. Only one master catalog can exist at a time, and multiple stores can share a master catalog. However, you can create one or more sales catalogs for customer display purposes. A sales catalog has a flexible display structure that allows you to associate products to more than one category, to suit the requirements of your store.
Sales catalogs allow you to maintain an unlimited number of catalog hierarchies and place products in any number of locations within a single sales catalog structure. Sales catalogs can be used to create unique hierarchies and product assortments for seasonal purposes, targeting specific customer segments or business customers. For example, you may have a Spring sales catalog, a Fall sales catalog as well as a Gold-rated Customer sales catalog.
You can manage your sales catalog from the WebSphere Commerce Accelerator and perform the following tasks:
Create, change, or delete sales catalogs. You can create sales catalogs based on segments of your master catalog, or choose to create one from scratch.
Create, change, find, or remove categories. Select new parent categories and rearrange the category tree structure for a new look.
Link a category. Take a category from one sales catalog to another sales catalog. That category, and all its catalog entries, will then be displayed in both, or more, sales catalogs.
Duplicate the structure of a category. From your master or sales catalog, you can duplicate a section of categories and subcategories to preserve a similar structure.
Assign, find, or remove catalog entries from different categories.
Sales catalogs can be used in conjunction with the master catalog and contracts to control which products display for a particular customer. If a customer is not entitled to see a subset of the products in the master catalog, the contract system will make sure that customer does not see those products in the WebSphere Commerce store. The sales catalog can then be used to organize the products that the customer is entitled to see and purchase in a more meaningful way. For example, customers may buy products to support a business project. Instead of organizing products by department and sub-department, it might be easier for the customer to find products when the products are arranged in a manner that matches the components of their project. In this scenario, a top level category might be titled Network Replacement Project and the subcategories in the sales catalog would be Hardware and Software.

Member groups in WCS


A member group is a grouping of members - users, organizations, or other member groups - used for various business purposes. Two kinds of member groups exist: implicit and explicit. An implicit member group contains users that share common attributes and are therefore considered members of a specific member group. An implicit member group specifies criteria on attributes that users must satisfy in order to be considered members of that member group. You can also explicitly exclude certain users although they satisfy the criteria. An explicit member group contains explicitly assigned users, who may or may not share common attributes. A member group can be both implicit and explicit at the same time.
Member group data can be stored only in the WebSphere Commerce database. Furthermore, member groups are not part of the membership hierarchy but are owned by organizational entities. This ownership determines the set of access control policies that apply to accessing the member group.

Member Subsystem in WCS

What is Member Subsystem in Websphere commerce suit?
The Member subsystem in WCS  contains the data for participants of the WCS system.A member can be

  •  user,
  •  group of users (also known as a member group),
  •  organizational entity


The business services provided by Member Subsystem are



  • member registration :
  • profile management
  • access control,
  • authentication
  • session management.



Basic Working of Member Subsystem


The Member subsystem assigned roles depending on the activities in which users and organizations choose to participate. Assignment of roles is the responsibility of an administrator, known as Site Administrator. Once a member is assigned a role, access control component authorizes the member to participate in activities associated with the role. For example, an organization can be a buyer or a seller, or both. A user can also be assigned multiple roles.


Member Registration

Registration data of users and organizational entities is stored in the WebSphere Commerce database or the directory server. Member groups data can be stored only in the WebSphere Commercedatabase. A registered user has a unique identifier and a password. If the WebSphere Commercedatabase is used as registry, the unique identifier is the logon ID. If the directory server is used, the unique identifier can be a DN or a relative distinguished name. For an organizational entity, only an administrator can create a new registration profile and approval is not required.



Profile management.

The site administrator is the key component for Profile Management.The  Site Administrator in WCS manages user and organizational entity profiles and data. It contains  organizations or organizational units, roles, users, and member groups within a site. There is Buyer Administrator and Seller Administrator and they manage users and organizational entities.


Access control .

Access control governs what tasks users can perform on  resources.In WCS there is an an access group which is a group of members defined specifically for access control purposes. In WCS Access groups typically group users based on their roles, organizations, and registration status. A Site Administrator creates, maintains, and deletes access groups for a site. A Buyer Administrator or a Seller Administrator can also manage access groups for access control policies.



Security

 In Webspehere commerce suit a user can be authenticated against a WebSphere Commerce database or a directory server. WebSphere Commerce supports two challenge types: logon ID and password, and X.509 client certificate. When logon ID and password is used, a user is authenticated against the WebSphere Commerce database or a directory server. When X.509 client certificate is used, the Web server performs the authentication.

Sunday, September 1, 2019

tattvamasi weekly quiz

Hi,today i am going to ask you some questions:

Q1. Which theory proposes that the universe expanded rapidly from a highly compressed state?
a.Copernican model b.Big-Bang theory c. Helio-centric theory d.Galileo theory

Q2.what is the name of the heart's natural pacemaker?
a. Sino cordial node b. Sino artial node c. Sino venal node d. Sino caprial node

Q3.what is the minimum speed required for a space craft to get out of the Earth's gravitational force called "escape velocity"?
a.18640 km/hr b.22860 km/hr c.29000 km/hr d.40320 km/hr

Introduction to Machine Learning

https://www.youtube.com/watch?v=ReoMLN2TtmU&t=10s