I found that the documentation to create a blog and wiki is not clear in IBM WebSphere Portal Infocenter. Here are the basic steps to create a wiki in Portal.
1. Login to Portal as Administrator. Go to Administration, Under Portal User Interface -> Manage pages. Drill down to Home. Under Home create a page MyWiki with layout as single column. Save the changes.
2. Now, go to location - Home - MyWiki.
3. Switch Edit mode ON
4. click on Create - Content - Select wiki and then click - Add to page button found at the corner. A wiki is created.
In this article, we will see how a Custom Workflow Action can replace or clear the references of expired content.
This is the scenario. There is a WCM site which has file resource elements like pdf, word document, and images which are uploaded as Content. These contents can get expired. Also, there are several contents in the WCM system which are referring to these file resources as content links. When the file resource contents get expired, you want all its content references to be either cleared automatically or its references can be updated with another content. When a user opens the expired content links, either he cannot see those expired resources(this is achieved by clearing references) or it shows a page that the content is no longer valid(achieved by replacing references).
Here is the sample eclipse web project that I created for Custom Workflow(WF) Action :
1. Import the project in Eclipse. Export the application as a war file. Install the war file in WebSphere Integrated Console. Start the project application.
2. Login to Portal. Create a Workflow custom action as shown below :
Here, the action - clearExpiredContentReferences is taken from the CustomWF war file installed in WAS.
3. Create a three stage workflow with stages - Draft, Publish, Expired. In the 'Expire stage' of the Workflow, include the ClearExpiredReferences custom WF action in its entering stage as shown below. Whenever, the content moves from Publish to Expire Stage, it invokes the Custom WF action that will either clear or replace the references.
4. In the Authoring Portlet, create an Authoring Template(AT) with a File resource element. Also, select the three stage Workflow process. Create a Presentation Template(PT). Add the AT and PT mapping in Site Area. Create a content. 'ContentPDF' and upload a PDF file. Publish the content. This is the preview of ContentPDF.
5. Now, lets create the referrer content for these resources. Create an Authoring Template(AT) with a link element. Create a Presentation Template(PT). Add the AT and PT mapping in Site Area. Create a content. 'ContentA' and select the 'ContentPDF' in its link. Ensure that while creating the content, the below checkbox is unchecked.
This will allow the content to remove the content link.
6. Preview the content. You will find that it shows the link of ContentPDF. Now, expire the content 'ContentPDF'. When you expire the content, the referrer content 'ContentA' will be replaced with another content "NotValid" by the custom WF Action.
7. Open the content 'ContentA'. You should see the content link referring to "NotValid" as shown below.