Orchard Core workflow processing using the page to submit Orchard Core using a workflow approval process and create content items

Previous article: Orchard Core using workflow approval process and create content items

We describe how to use workflow approval process, through this article we learned that simple to use workflow. But to submit data from Postman

The article I will demonstrate how to submit data from the page to the workflow.

 

Step1 View "article" type of document structure

Admin menu on the left click on this: New> Articles 

Fill in the following information and publish:

 

 Open the database, find the Document table, if you are using Sqlite recommend using  SQLite Expert 

Open the table, the largest digital ID from start looking, it is generally the last one to see data Content column, you can use some online tools to format JSON formatting

The following is my document structure, and then we get these structures will create a form to fill this Content Type

{
	"ContentItemId": "47x2tyt75sz45277wkzc6922cr",
	"ContentItemVersionId": "4wzp6r1gm6rvs03q2vsyzz9xcr",
	"ContentType": "Article",
	"DisplayText": "文章测试",
	"Latest": true,
	"Published": true,
	"ModifiedUtc": "2019-03-12T13:11:55.7376134Z",
	"PublishedUtc": "2019-03-12T13:11:55.9234966Z",
	"CreatedUtc": "2019-03-12T11:12:40.7589987Z",
	"Owner": "admin",
	"Author": "admin",
	"Article": {
		"AuthorName": {
			"Text": "张三"
		}
	},
	"AutoroutePart": {
		"Path": "TestUrl",
		"SetHomepage": false
	},
	"HtmlBodyPart": {
		"Html": "<p> <span class = \" bjh-strong \ "style = \" font-size: 18px; color: rgb (51, 51, 51); font-weight: 700; font-family: arial; text-align: justify; \ "> foreign network March 12 electrically </ span> <span style = \" color: rgb (51, 51, 51); font-family: arial; text-align: justify ; \ "> March 11 to 12," Indian Pacific to defend the religious freedom of civil society dialogue "held in Taiwan, the US State Department religious freedom Ambassador-Brownback participants for the matter, the State Council Taiwan Affairs Office spokesman Ann Mountain. Responding to the 12th that "the Foreign Ministry has made clear its attitude towards me. I want to reiterate that we are firmly opposed to countries which have diplomatic ties and Taiwan official exchanges in any form, this position is consistent and clear. "</ Span> <br> </ the p->" 
	}, 
	"TitlePart": { 
		"the Title": "test article" 
	} 
}

  

Step2  Create a front page

  1. Create a Page item
  2. Title: Submit Articles
  3. Permalink:submitArticle

Click on the lower left corner  to add a Form

  • Title: Submit Articles
  • Method: POST
  • Action :( URL workflow from start node)

 

 

 

 In the lower left corner of Form Click Add widget Continue to add the following Label and Input:

 

 

 

Guess you like

Origin www.cnblogs.com/Qbit/p/orchardcore-Workflow2.html